ソースを参照

Add reportScroll property to MouseMode

xuty 3 年 前
コミット
21882b1b1c
1 ファイル変更8 行追加3 行削除
  1. 8 3
      lib/src/core/mouse/mode.dart

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

@@ -4,11 +4,16 @@ enum MouseMode {
 
 
   clickOnly,
   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/
 /// https://terminalguide.namepad.de/mouse/