fix(chat): suppress programmatic scroll while user is scrolling (#132) #216
Reference in New Issue
Block a user
Delete Branch "Khushvendra/flotilla:fix/scroll-jitter-132"
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?
Closes #132.
Summary
Scrolling in reversed chat layouts could jitter and jump to extreme positions during mouse wheel and trackpad use. The core issue was programmatic scroll management running while the user was actively scrolling and while new event batches were re-rendering.
Root Cause
Changes made
isUserScrollingstate flag in both chat views.onScroll, only user-initiated scrolls setisUserScrolling.manageScrollPositiondoes not run whileisUserScrollingis true.Validation
Nice, this is an elegant solution.