@@ -24,8 +24,8 @@ const PLUGIN_NAME: &str = "mouse_gestures";
2424pub struct MouseGestureSettings {
2525 #[ serde( default = "default_enabled" ) ]
2626 pub enabled : bool ,
27- #[ serde( default = "default_require_button " ) ]
28- pub require_button : bool ,
27+ #[ serde( default = "default_debug_logging " ) ]
28+ pub debug_logging : bool ,
2929 #[ serde( default = "default_show_trail" ) ]
3030 pub show_trail : bool ,
3131 #[ serde( default = "default_trail_color" ) ]
@@ -52,7 +52,7 @@ impl Default for MouseGestureSettings {
5252 fn default ( ) -> Self {
5353 Self {
5454 enabled : default_enabled ( ) ,
55- require_button : default_require_button ( ) ,
55+ debug_logging : default_debug_logging ( ) ,
5656 show_trail : default_show_trail ( ) ,
5757 trail_color : default_trail_color ( ) ,
5858 trail_width : default_trail_width ( ) ,
@@ -71,8 +71,8 @@ fn default_enabled() -> bool {
7171 true
7272}
7373
74- fn default_require_button ( ) -> bool {
75- true
74+ fn default_debug_logging ( ) -> bool {
75+ false
7676}
7777
7878fn default_show_trail ( ) -> bool {
@@ -104,7 +104,7 @@ fn default_cancel_behavior() -> CancelBehavior {
104104}
105105
106106fn default_no_match_behavior ( ) -> NoMatchBehavior {
107- NoMatchBehavior :: DoNothing
107+ NoMatchBehavior :: PassThroughClick
108108}
109109
110110fn default_wheel_cycle_gate ( ) -> WheelCycleGate {
@@ -161,6 +161,7 @@ impl MouseGestureRuntime {
161161 fn apply ( & self ) {
162162 let mut config = MouseGestureConfig :: default ( ) ;
163163 config. enabled = self . settings . enabled && self . plugin_enabled ;
164+ config. debug_logging = self . settings . debug_logging ;
164165 config. trail_start_move_px = self . settings . trail_start_move_px ;
165166 config. show_trail = self . settings . show_trail ;
166167 config. trail_color = self . settings . trail_color ;
@@ -465,7 +466,7 @@ impl Plugin for MouseGesturesPlugin {
465466 . checkbox ( & mut cfg. enabled , "Enable mouse gestures" )
466467 . changed ( ) ;
467468 changed |= ui
468- . checkbox ( & mut cfg. require_button , "Require gesture button held " )
469+ . checkbox ( & mut cfg. debug_logging , "Enable debug logging " )
469470 . changed ( ) ;
470471
471472 changed |= ui
@@ -571,6 +572,7 @@ impl Plugin for MouseGesturesPlugin {
571572 . changed ( ) ;
572573 } ) ;
573574 } ) ;
575+ ui. small ( "Fallback runs when a gesture does not match; default is pass-through right-click." ) ;
574576
575577 // Only write+apply when something changed.
576578 if changed {
0 commit comments