-
Notifications
You must be signed in to change notification settings - Fork 236
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
View port scroll issues #110
Comments
Hi Tomas, were you able to reproduce this? |
I am having a similar problem (involving scrolling) using CodeArea. When I have a line that is longer than the width of the control, the horizontal scroll bar appears at the bottom of the control as it should, but will not allow me to scroll. Furthermore, as I continue to type past the right end of the control, the view is not scrolled with the cursor, and the horizontal scroll bar stays in the far left position. Note: the vertical scrollbar works as expected. |
Seems like two separate issues. Hopefully I will be able to get to it over the weekend. |
The horizontal scrolling issue (reported by @ejames2) is now fixed in the latest SNAPSHOT version. |
Thank you for the videos, it is now clearer what the problem is. |
0.6.1 has improved scrollbar experience. Let me know if you experience any further weirdness. |
Hi Tomas, I ran into three new issues. Issue 1--Can't scroll to select text beyond what is shown in the view port: Issue 2: Flickering text when adding, deleting, or inserting new lines. For some reason, the flickering s not being captured by the video...It happens when you add a new text, remove, or change existing text. Issue 3: Layout. Some lines seem to overlay.. Both in this video I am running Java U40. b23. |
Thanks for reporting back.
|
For number 1, yes. I select text and keep dragging the mouse down to extend my selection. I just another try and noticed that selection (add more to text) stops working once the mouse cursor is outside of the view port. |
OK, I see what you are expecting. That never was a feature in RichTextFX. It is reasonable to expect, because some editors support that. You can file a new feature request. You may observe that it "somehow" works, when you come close enough to the edge of the text area, but don't cross it. This is not a feature, but a side effect of the following: the caret is slightly taller than the line, so it overlaps by approx. 1 pixel to the next and previous line. When the text area is automatically scrolled (e.g. down) to show the whole caret, it also shows a 1 pixel stripe from the next line. If you move the mouse over that one pixel stripe, the caret is repositioned to the next line, and area is scrolled to show the caret, which again shows a 1 pixel stripe of the following line, and so on. Not a feature, just a consequence of the caret being a little taller. |
What does work reliably for selecting text beyond the viewport is: start the selection, keep the mouse button pressed, and scroll down/up with the mouse wheel. |
Yes. That explains it. Because it seemed like it was sort of supported.
|
Hi Tomas,
Scrolling in a text area with varying text sizes affects the size of the scrolling step, and causes a few things:
If caret is at a position in BIG text, scroll bars do not go down with mouse scrolls. It works with moving the carrot position by arrow keys. Alternatively, if I clock the scroll bar (rectangle handle grab thingy--what you call it?), it goes to the end of text as expected.
Another issue I noticed is that if the carrot is in a position, and I scroll down with mouse, if it works and reach the end of the text (now carrot position is not shown in the view port, in this case if I keep scrolling down, the view port will jump back up to a place where the carrot position is shown in the view port.
I'll do more testing to give better report.
but general, things work MUCH better, selecting and highlighting text is much faster now, I believe it is now instantaneous.
best,
Maher
The text was updated successfully, but these errors were encountered: