Camera stream view fixes
This commit is contained in:
parent
06f994a827
commit
fba4459977
@ -9,7 +9,12 @@ function fixCameraImgView() {
|
||||
img[0].removeAttribute('style');
|
||||
setTimeout(function() {
|
||||
window[messageChannel].postMessage(document.body.clientWidth / img[0].offsetHeight);
|
||||
}, 100);
|
||||
}, 200);
|
||||
setTimeout(function() {
|
||||
document.body.style.pointerEvents = 'none';
|
||||
document.body.style.overflow = 'hidden';
|
||||
window.onscroll = function () { window.scrollTo(0, 0); };
|
||||
}, 200);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -105,6 +105,7 @@ class _CameraStreamViewState extends State<CameraStreamView> {
|
||||
initialUrl: streamUrl,
|
||||
initialMediaPlaybackPolicy: AutoMediaPlaybackPolicy.always_allow,
|
||||
debuggingEnabled: Logger.isInDebugMode,
|
||||
gestureNavigationEnabled: false,
|
||||
javascriptMode: JavascriptMode.unrestricted,
|
||||
javascriptChannels: {
|
||||
JavascriptChannel(
|
||||
|
Reference in New Issue
Block a user