From bc65c0da2e08f241236a38095b01bdfa3ca72200 Mon Sep 17 00:00:00 2001 From: Foldblade Date: Tue, 15 Mar 2022 17:29:06 +0800 Subject: [PATCH] Fix #11 --- lib/src/model_viewer_plus_mobile.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/src/model_viewer_plus_mobile.dart b/lib/src/model_viewer_plus_mobile.dart index 96ac865..4711eb5 100644 --- a/lib/src/model_viewer_plus_mobile.dart +++ b/lib/src/model_viewer_plus_mobile.dart @@ -5,6 +5,8 @@ import 'dart:convert' show utf8; import 'dart:io' show File, HttpRequest, HttpServer, HttpStatus, InternetAddress, Platform; import 'dart:typed_data' show Uint8List; +import 'package:flutter/foundation.dart'; +import 'package:flutter/gestures.dart'; import 'package:path/path.dart' as p; import 'package:android_intent_plus/flag.dart'; @@ -59,6 +61,11 @@ class ModelViewerState extends State { initialUrl: null, javascriptMode: JavascriptMode.unrestricted, initialMediaPlaybackPolicy: AutoMediaPlaybackPolicy.always_allow, + gestureRecognizers: >{ + Factory( + () => EagerGestureRecognizer(), + ), + }, onWebViewCreated: (final WebViewController webViewController) async { _controller.complete(webViewController); print('>>>> ModelViewer initializing... <$_proxyURL>'); // DEBUG