diff options
Diffstat (limited to 'wiki/Configuration:-Input.md')
| -rw-r--r-- | wiki/Configuration:-Input.md | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/wiki/Configuration:-Input.md b/wiki/Configuration:-Input.md index 05c6ce9b..fd4d0d68 100644 --- a/wiki/Configuration:-Input.md +++ b/wiki/Configuration:-Input.md @@ -68,7 +68,7 @@ input { // disable-power-key-handling // warp-mouse-to-focus - // focus-follows-mouse + // focus-follows-mouse max-scroll-amount="0%" // workspace-auto-back-and-forth } ``` @@ -207,6 +207,24 @@ input { } ``` +<sup>Since: 0.1.8</sup> You can optionally set `max-scroll-amount`. +Then, focus-follows-mouse won't focus a window if it will result in the view scrolling more than the set amount. +The value is a percentage of the working area width. + +``` +input { + // Allow focus-follows-mouse when it results in scrolling at most 10% of the screen. + focus-follows-mouse max-scroll-amount="10%" +} +``` + +``` +input { + // Allow focus-follows-mouse only when it will not scroll the view. + focus-follows-mouse max-scroll-amount="0%" +} +``` + #### `workspace-auto-back-and-forth` Normally, switching to the same workspace by index twice will do nothing (since you're already on that workspace). |
