Jelajahi Sumber

Add reportScroll property to MouseMode

xuty 3 tahun lalu
induk
melakukan
21882b1b1c
1 mengubah file dengan 8 tambahan dan 3 penghapusan
  1. 8 3
      lib/src/core/mouse/mode.dart

+ 8 - 3
lib/src/core/mouse/mode.dart

@@ -4,11 +4,16 @@ enum MouseMode {
 
   clickOnly,
 
-  upDownScroll,
+  upDownScroll(reportScroll: true),
 
-  upDownScrollDrag,
+  upDownScrollDrag(reportScroll: true),
 
-  upDownScrollMove,
+  upDownScrollMove(reportScroll: true),
+  ;
+
+  const MouseMode({this.reportScroll = false});
+
+  final bool reportScroll;
 }
 
 /// https://terminalguide.namepad.de/mouse/