From 1da99f4003c100180b4821afc4e32e35c86dfdb4 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 5 Jul 2024 20:12:56 +0400 Subject: Implement focus-follows-mouse max-scroll-amount --- wiki/Configuration:-Input.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'wiki/Configuration:-Input.md') 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 { } ``` +Since: 0.1.8 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). -- cgit