Showing
1 changed file
with
14 additions
and
7 deletions
| @@ -285,13 +285,20 @@ class PdfPreviewCustomState extends State<PdfPreviewCustom> | @@ -285,13 +285,20 @@ class PdfPreviewCustomState extends State<PdfPreviewCustom> | ||
| 285 | 285 | ||
| 286 | Widget _zoomPreview() { | 286 | Widget _zoomPreview() { |
| 287 | final zoomPreview = GestureDetector( | 287 | final zoomPreview = GestureDetector( |
| 288 | - onTap: () { | ||
| 289 | - if (kIsWeb) { | ||
| 290 | - setState(() { | ||
| 291 | - _mouseCursor = SystemMouseCursors.grabbing; | ||
| 292 | - }); | ||
| 293 | - } | ||
| 294 | - }, | 288 | + onTapDown: kIsWeb |
| 289 | + ? (_) { | ||
| 290 | + setState(() { | ||
| 291 | + _mouseCursor = SystemMouseCursors.grabbing; | ||
| 292 | + }); | ||
| 293 | + } | ||
| 294 | + : null, | ||
| 295 | + onTapUp: kIsWeb | ||
| 296 | + ? (_) { | ||
| 297 | + setState(() { | ||
| 298 | + _mouseCursor = SystemMouseCursors.grab; | ||
| 299 | + }); | ||
| 300 | + } | ||
| 301 | + : null, | ||
| 295 | onDoubleTap: () { | 302 | onDoubleTap: () { |
| 296 | setState(() { | 303 | setState(() { |
| 297 | preview = null; | 304 | preview = null; |
-
Please register or login to post a comment