diff --git a/assets/js/cameraImgViewHelper.js b/assets/js/cameraImgViewHelper.js index 5df0c40..b084019 100644 --- a/assets/js/cameraImgViewHelper.js +++ b/assets/js/cameraImgViewHelper.js @@ -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); } } diff --git a/lib/entities/camera/widgets/camera_stream_view.dart b/lib/entities/camera/widgets/camera_stream_view.dart index d9384fc..b763bb9 100644 --- a/lib/entities/camera/widgets/camera_stream_view.dart +++ b/lib/entities/camera/widgets/camera_stream_view.dart @@ -105,6 +105,7 @@ class _CameraStreamViewState extends State { initialUrl: streamUrl, initialMediaPlaybackPolicy: AutoMediaPlaybackPolicy.always_allow, debuggingEnabled: Logger.isInDebugMode, + gestureNavigationEnabled: false, javascriptMode: JavascriptMode.unrestricted, javascriptChannels: { JavascriptChannel(