howl icon indicating copy to clipboard operation
howl copied to clipboard

Cursor moves when scrolling horizontally

Open refi64 opened this issue 8 years ago • 1 comments

Steps to reproduce:

  1. Open up a new file in Howl.
  2. Add enough text to a line to make it scroll horizontally by a significant amount.
  3. Move the cursor back to the beginning of the line.
  4. Scroll right using the scroll bar.

Now, when you scroll right via the bar, the cursor will also be moved right.

refi64 avatar Apr 29 '16 19:04 refi64

I can confirm that this is still the case. However, it is not so much that the cursor "moves". The (actual) position of of the cursor is always correct (unchanged by scrolling). This can be easily verified by adding a step 5 to @kirbyfan64 4 's list:

5. Start typing

You will see the view scrolling to the correct position and characters inserted at the correct position.

What probably happens is that the cursor is positioned in the relative view coordinate space and when the real cursor position is out of the bounds, the cursor is set to x:0, y:0 instead of invisible.

Some things to note:

  • This behaviour can only be observed on the left side of the editor view.
  • It is also present when line numbers an vertical scrollbar are off

bugabinga avatar Sep 06 '18 19:09 bugabinga