[dreamwidth/dreamwidth] 722aca: Fix k shortcut sometimes not scrolling to previous...
Branch: refs/heads/main Home: https://github.com/dreamwidth/dreamwidth Commit: 722aca660143d17125cf5f95365e3d8272f5773c https://github.com/dreamwidth/dreamwidth/commit/722aca660143d17125cf5f95365e3d8272f5773c Author: Mark Smith mark@dreamwidth.org Date: 2026-02-20 (Fri, 20 Feb 2026)
Changed paths: M htdocs/js/jquery.shortcuts.nextentry.js
Log Message:
Fix k shortcut sometimes not scrolling to previous entry
prevPageEntry() used a strict < comparison with no tolerance, so if the scroll position landed even 1px past an entry's top (due to sub-pixel rounding or animation overshoot), pressing k would "scroll" to the entry already on screen, appearing to do nothing. Add the same 50px tolerance that nextPageEntry() already uses.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
To unsubscribe from these emails, change your notification settings at https://github.com/dreamwidth/dreamwidth/settings/notifications
