Fix #110: Private Message Chat Scrolling Issue #131
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "typosaurus/ticket-110"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves #110.
Plan
Implementation Plan
Problem
The constant
AUTO_SCROLL_MARGIN_PXis set to100indevplacepy/static/js/components/AppChat.js(line 17). When a user scrolls up and the viewport is still within 100 px of the bottom,_stabilizeScroll()snaps back to the bottom, defeating the user’s attempt to read older messages. Reducing this margin to0makes auto-scroll fire only when the user is literally at the very bottom, matching the expected behavior of typical messaging applications.Change
devplacepy/static/js/components/AppChat.jsconst AUTO_SCROLL_MARGIN_PX = 100;const AUTO_SCROLL_MARGIN_PX = 0;No other functions or constants require modification. The inner stabilization check at line 872 (
scrollTop < 10) already handles the “truly at bottom” case; setting the outer margin to0makes the two thresholds consistent.Execution Steps
devplacepy/static/js/components/AppChat.jsand change line 17 as specified.Definition of Done
AUTO_SCROLL_MARGIN_PXinAppChat.jsis changed from100to0.Opened automatically by Typosaurus.
Checkout
From your project repository, check out a new branch and test the changes.