Explorar o código

Add reportScroll property to MouseMode

xuty %!s(int64=3) %!d(string=hai) anos
pai
achega
21882b1b1c
Modificáronse 1 ficheiros con 8 adicións e 3 borrados
  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/