Skip to content

fix: restore scroll cursor + feat: track mouse/trackpad movement - #335

Open
Olinkai wants to merge 2 commits into
rvaiya:masterfrom
Olinkai:fix/scroll-cursor-restore
Open

fix: restore scroll cursor + feat: track mouse/trackpad movement#335
Olinkai wants to merge 2 commits into
rvaiya:masterfrom
Olinkai:fix/scroll-cursor-restore

Conversation

@Olinkai

@Olinkai Olinkai commented Feb 11, 2026

Copy link
Copy Markdown

Summary

Changes

Two commits, independently reviewable:

  1. Bug fix — Add scroll_active() to detect when scrolling stops and restore
    the cursor
  2. Feature — Track mouse position changes and redraw overlay when the pointer
    moves

Test plan

  • Enter normal mode, scroll with scroll keys — cursor hides during scroll,
    reappears after
  • Move physical mouse/trackpad — cursor overlay follows
  • Move with h/j/k/l — still works as before

Olinkai and others added 2 commits February 11, 2026 13:19
The scroll handlers hide the cursor with hardcoded hide_cursor=1
during active scrolling. After scrolling decelerates to zero velocity,
nothing restores the cursor, leaving it permanently hidden.

Add scroll_active() to expose scroll velocity state, and use it to
detect the scroll-to-idle transition and trigger a cursor redraw.

Fixes rvaiya#334

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The cursor overlay now follows physical mouse/trackpad movement in
addition to keyboard movement (h/j/k/l). On each loop iteration,
if the mouse position has changed, the cursor is redrawn at the
new position.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cursor disappears after scrolling in normal mode and never reappears

1 participant