mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-08 06:48:56 +08:00
6 lines
211 B
Dart
6 lines
211 B
Dart
// 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;
|