-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse tracking translates dragging with finger down to scroll wheel events #1384
Comments
If one is using a mouse (as checked with We currently translate dragging the finger to scroll wheel events to enable scrolling e.g. output in tmux. The reasoning it that it's hard to drag things with precision using a finger, so we might just as well enable scrolling in that case. I'm willing to reconsider this, let me know what you think. |
My software translates a crude drag into a swipe event, so even if the touch screen is too crude for dragging, the user would still have access to 8 swipe directions, and I am also planning to add a drag down and drag up event that could easily be used to mimic vertical scroll, as well as horizontal scroll. So maybe it's time for tmux to add drag support and not stand in the way of progress? :) |
@scandum Thanks for the input! I'm experimenting and checking with others. |
@fornwall Scroll wheel up/down by dragging with two fingers definitely has my vote. I'd suggest adding horizontal scroll wheel support while at it. Another (minor) issue I'm having is that if you press down and hold steady for 0.5 seconds a copy/paste dialog is triggered, even when mouse mode is enabled. Might be an idea to change this to pressing down and holding steady for 0.5 seconds with two fingers, upon which termux could automatically create a proper selection rectangle between the two points? Also an option to make the copy/paste menu a ctrl-enabled single finger press action when mouse mode is set. As for increasing / decreasing font size, if this creates false positives you could make this an option that requires holding down control when mouse mode is enabled. Could also allow ctrl two-finger up/down scroll to change font size as this would be identical to xterm behavior. Yet another idea: could allow alt-click to send a right button mouse click. This could help with handling some default configurations. |
It would be neat if changing between drag an scroll for one finger drag could be toggled live, e.g. with a button in the extra keys row. Since scrolling is common in tmux and weechat, using two fingers for that would be impractical (though, also a nice option to have in addition). |
Adds a setting so users can choose whether dragging the touch screen sends mouse move events, or scroll wheel up/down. Defaults to scroll wheel (the old behavior). Closes termux#1384
Adds a setting so users can choose whether dragging the touch screen sends mouse move events, or scroll wheel up/down. Defaults to scroll wheel (the old behavior). Closes termux#1384
Adds a setting so users can choose whether dragging the touch screen sends mouse move events, or scroll wheel up/down. Defaults to scroll wheel (the old behavior). Closes termux#1384
When mouse tracking is enabled Termux sends scroll-wheel up and down codes when swiping up and down.
While this is cute it prevents implementing any kind of advanced mouse functionality in Termux, like dragging.
Drag support is essential functionality to me while mouse-wheel support is not.
The text was updated successfully, but these errors were encountered: