Page 1 of 1

Feature request: Clear mouse wheel buffer when leaving current window

Posted: Fri Jun 25, 2021 7:27 pm
by UselessGuru
Mouse used is Logitech MX Master 3 with a free spining mouse wheel.

Scenario:
I fast scroll using the free spinning wheel in one window, e.g. Chrome.
Then I move the mouse pointer to another window, e.g. Word, without activating the Word window.
Because the mouse wheel is still spinning, text in Word get scrolled too. This is not what I want.

Request / Idea:
I'd like a feature where the scroll buffer gets cleared (or any current scroll events get discarded) as soon as I leave the original window (where I started scrolling) until I scroll again.

Any ideas?

Re: Feature request: Clear mouse wheel buffer when leaving current window

Posted: Sat Jun 26, 2021 8:29 pm
by phil
My thoughts are that it wouldn't be easy, because as far a I know, you can clear the windows mouse buffer, the best that could be done, off this top of my head would simply be to ignore the messages after switching windows - possible but could lead to difficulties, like when do you stop ignoring them!

Re: Feature request: Clear mouse wheel buffer when leaving current window

Posted: Tue Jun 29, 2021 5:06 pm
by UselessGuru
phil wrote: Sat Jun 26, 2021 8:29 pm ... would simply be to ignore the messages after switching windows - possible but could lead to difficulties, like when do you stop ignoring them!
The free spinning wheel can be stopped by holding the wheel, so no scoll events are fired anymore. This could be used to re-allow events.

How about:
1. Detecting when window is left
2. Ignore all scrolling events that occur faster than every X ms (while wheel is spinning)
3. Start accepting scrolling events again when they occur less than every X ms (after wheel got stopped)

Re: Feature request: Clear mouse wheel buffer when leaving current window

Posted: Fri Jul 01, 2022 1:02 pm
by UselessGuru
Any news on this idea?

Re: Feature request: Clear mouse wheel buffer when leaving current window

Posted: Fri Jul 01, 2022 1:47 pm
by phil
No update, I really havnt had any time for XMBC in the last two years.