Add mouse scroll to scale image

This commit is contained in:
2024-02-03 13:01:03 +08:00
parent 4d7bcb1226
commit dd486c3e50
4 changed files with 40 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
// ignore: avoid_web_libraries_in_flutter
import 'dart:html';
bool get pointerIsMouse => window.matchMedia('(pointer: fine)').matches;
bool get pointerIsTouch => window.matchMedia('(pointer: coarse)').matches;