Closed daryllabar closed 4 years ago
Simple explanation: When the content is changed (selecting a new row) the cursor position is set to 0;0. When the textbox gets focus, the control makes sure the cursor position is visible.
Solution 1: Make sure textbox is always scrolled to top when selecting new row. Downside: trying to compare content "far down" of different log records gets hard. Solution 2: Try to place cursor at top;left position in currently visible text based on current scroll-state. Downside: how to implement?
It makes it even worse when you scroll with the mouse wheel, and then click, because if you scroll to the bottom, it doesn't register focus and then you click to highlight something, and it throws you up to the top...
If you can get the scroll bar height, and the number of newlines, you can calculate a percentage...
Pull Requests welcome!! 😁
Raise the Bar episode 9?
Hit it! 💪
I guess this never made it to Raise the Bar... 😉
https://www.screencast.com/t/unddiQfAv
When clicking in the text box, it scrolls to the top...