diff --git a/lib/ui/common/modals/fullscreen_video_viewer.dart b/lib/ui/common/modals/fullscreen_video_viewer.dart index db0174c6..f9a86616 100644 --- a/lib/ui/common/modals/fullscreen_video_viewer.dart +++ b/lib/ui/common/modals/fullscreen_video_viewer.dart @@ -1,4 +1,5 @@ import 'package:flutter/foundation.dart'; +import 'package:pointer_interceptor/pointer_interceptor.dart'; import 'package:wonders/common_libs.dart'; import 'package:wonders/logic/common/platform_info.dart'; import 'package:youtube_player_iframe/youtube_player_iframe.dart'; @@ -69,7 +70,10 @@ class _FullscreenVideoViewerState extends State { SafeArea( child: Padding( padding: EdgeInsets.all($styles.insets.md), - child: const BackBtn(), + // Wrap btn in a PointerInterceptor to prevent the HTML video player from intercepting the pointer (https://pub.dev/packages/pointer_interceptor) + child: PointerInterceptor( + child: const BackBtn(), + ), ), ), ], diff --git a/pubspec.lock b/pubspec.lock index 98a82cd4..c9d6838b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -548,10 +548,10 @@ packages: dependency: "direct main" description: name: path_provider - sha256: "909b84830485dbcd0308edf6f7368bc8fd76afa26a270420f34cabea2a6467a0" + sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" path_provider_android: dependency: transitive description: @@ -616,6 +616,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.5" + pointer_interceptor: + dependency: "direct main" + description: + name: pointer_interceptor + sha256: "7626e034489820fd599380d2bb4d3f4a0a5e3529370b62bfce53ab736b91adb2" + url: "https://pub.dev" + source: hosted + version: "0.9.3+6" pointycastle: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 724321c1..a142c7bd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -39,7 +39,8 @@ dependencies: internet_connection_checker: ^1.0.0+1 package_info_plus: ^3.0.3 particle_field: ^0.0.1 - path_provider: ^2.0.12 + path_provider: ^2.1.1 + pointer_interceptor: ^0.9.3+6 provider: ^6.0.5 rnd: ^0.2.0 share_plus: ^6.3.1