-
-
Notifications
You must be signed in to change notification settings - Fork 820
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
Can't select text on first line via mouse #354
Comments
Yes! I also wanted to make an issue for this for some time 😃 Double clicking to select works, but as soon as you have to move the mouse.... the whole viewport scrolls to infinity... On urxvt for example it scrolls only when the mouse is moved ouside of the window (while clicking) |
This is a consequence of making the mouse bindings assignable; what's happening is that the mouse move event is being recognized as being within the pane and is then routed to the action that extends the selection based on the mouse position. There is a heuristic to scroll based on how close to the top or bottom the mouse is. The main problem here is that if the mouse moves when it is outside of the pane, we don't currently know to route the event into the pane. |
If I understood correctly, is the following possible?
Of course this will work only if it's possible to detect whether the mouse is still being dragged or not, outside the pane. |
* implement mouse press capture between the terminal and UI, so when you start selecting text from the terminal the tabs won't activate and vice-versa * selecting from the top and bottom lines won't scroll the viewport anymore, it will only scroll if the mouse is moved out of line bounds * change cell selection so that it behaves like text selection usually does in other popular software refs: wez#1199 refs: wez#1386 refs: wez#354
* gui: improve mouse text selection * implement mouse press capture between the terminal and UI, so when you start selecting text from the terminal the tabs won't activate and vice-versa * selecting from the top and bottom lines won't scroll the viewport anymore, it will only scroll if the mouse is moved out of line bounds * change cell selection so that it behaves like text selection usually does in other popular software refs: #1199 refs: #1386 refs: #354
Yup, now works. Thanks @davidrios (+wez)! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Describe the bug
If there is something on the scrollback buffer, it's not easy to select text from first line (or even second line) via mouse. Click + drag triggers scroll, even if you don't drag upwards.
Environment (please complete the following information):
UNKNOWN
(master commit eee40f7 from 2 days ago)To Reproduce
Expected behavior
Scroll shouldn't be triggered unless mouse moves upwards
The text was updated successfully, but these errors were encountered: