Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Another go at fixing the jumpy scroll #245

Merged
merged 1 commit into from
Mar 23, 2016
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 22, 2016

The most recent problem was that we were setting _lastSetScroll whenever we
wrote to scrollTop (and ignoring the next scroll event which matched that
offset), but if there was no change to scrollTop, we wouldn't actually get a
scroll event, so would ignore some future scroll event instead.

Make sure that we only set _lastSetScroll if there's a change to scrollTop.

(Fixes element-hq/element-web#1162, more)

The most recent problem was that we were setting _lastSetScroll whenever we
wrote to scrollTop (and ignoring the next scroll event which matched that
offset), but if there was no change to scrollTop, we wouldn't actually get a
scroll event, so would ignore some future scroll event instead.

Make sure that we only set _lastSetScroll if there's a change to scrollTop.

(Fixes element-hq/element-web#1162, more)
@dbkr
Copy link
Member

dbkr commented Mar 23, 2016

lgtm

@dbkr dbkr assigned richvdh and unassigned dbkr Mar 23, 2016
@richvdh richvdh merged commit 7eea8e1 into develop Mar 23, 2016
@richvdh richvdh deleted the rav/more_scroll_fixes branch March 23, 2016 10:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants