Skip to content

Commit

Permalink
Improve cursor when navigating threads
Browse files Browse the repository at this point in the history
When the user was at the first comment and scrolling up, the cursor changed from "up" to bidirectional which is inconsistent.

Change-Id: I34fd26d13350ef1593dfea4e6fbae77f5b6a299c
  • Loading branch information
jwbth committed May 31, 2024
1 parent 0e1c8b9 commit e48c29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ class Thread {
this.navInitialDirection = Math.sign(steps);
}

this.updateCursor(target === this.rootComment ? 0 : Math.sign(steps));
this.updateCursor(Math.sign(steps));

return target;
}
Expand Down

0 comments on commit e48c29e

Please sign in to comment.