zachpoblete / MouseToys

Mouse shortcuts to ease your workflow
MIT License
10 stars 0 forks source link

Shortcuts can be triggered twice if you click a certain way [1 mitigation] #8

Open zachpoblete opened 2 months ago

zachpoblete commented 2 months ago

There could be many causes for a button clicking twice. In my case, the XButton2+RButton shortcut would sometimes trigger twice because I would sometimes start a click with my finger in the air. When my finger would hit the button, I theorize that it would bounce up and then hit the button again very quickly, akin to the ricochet violin bowing technique. (There are probably mice out there that don't have this issue.)

So I'm now starting my clicks with my finger resting on the button. However, this solution does not completely address the issue; every once in a while, the XButton2+RButton shortcut will still trigger twice, and I'm not sure why.

zachpoblete commented 1 month ago

Okay, for some reason, this is happening more frequently now (even when I apply the mitigation).

zachpoblete commented 2 weeks ago

This is happening even more frequently, and I think it's because I have 300+ tabs (jeezus).

I should cut down on my number of tabs first.

zachpoblete commented 1 week ago

I have an idea: Send({Blind}{w Up}) Or if that doesn't work, we could try (but not super recommended) to make releasing w high priority somehow.

zachpoblete commented 1 week ago

So actually, whenever I physically release RButton, there's a possibility that it will be pressed down again (for some reason), and AHK interprets this as a physical press.

In the following example, I activate the X2+R+L shortcut (^+t), but when I release RButton, (for some reason) it's pressed down again in 0.02 ms, which activates the X2+R shortcut (^w). example

I think I should open a new issue that describes this more general case and close the current issue as not planned because there would be too much noise in this current issue after renaming and editing it to be more accurate.