It seems MOUSE_BUTTON4 and MOUSE_BUTTON5 events are sent on horizontal
wheel movement on Linux. Remove the registration of those and keeping
MOUSE_BUTTON6 and MOUSE_BUTTON7 which is assigned for back and forth
buttons does the trick.
Tested with Wayland and X11. and with Touchpad, MX Mouse 3S and MX Master 3
It would be good if somebody could test the Mouse Button layouts on
Windows and Mac, probably can remove the MOUSE_BUTTON4 and MOUSE_BUTTON5
registration...
On 10/28/23 03:03, Laszlo Kishalmi wrote:
Well, it seems to be something with the wheel rotation.
Horizontal two finger swipe is sent as horizontal scroll by default.
Previously that was not working in the IDE.
Now I've tested, the touchpad gesture, I can confirm, that it goes
back and forth through the editor caret history. So as the MX Master,
which has a horizontal scroll wheel. Also on that mouse the back and
forth buttons works as should now.
On 10/28/23 01:34, Neil C Smith wrote:
On Sat, 28 Oct 2023 at 06:34, Patrik Karlström <[email protected]> wrote:
I'm not sure if this is related to the OS, Fedora in my case or if
it's a netbeans thing.
Using the touchpad to scroll up and down also invokes a trigger
happy two finger swipe left and/or right and the result is that the
editor might switch tabs or jump between "editor points" within the
current file.
Is this behaviour possible to disable on the netbeans side?
I'm assuming this is with a NB20 release candidate?
This is likely some fallout from
https://github.com/apache/netbeans/pull/6434 This registers mouse
buttons as alternative shortcuts for the back and forward code history
actions.
You can search for the back and forward actions in Options / Keymap
and remove the mouse button shortcuts. I know it's a little odd to
have mouse buttons in the keymap, but we were already using this for
mouse wheel actions.
Is your touchpad normally that trigger happy in other applications?
What about browsers?
Is this on Wayland out of interest?
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists