Closed
Bug 785588
Opened 13 years ago
Closed 13 years ago
Janky scrolling with parallax background effect
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: jruderman, Assigned: roc)
References
()
Details
Attachments
(1 file)
|
4.23 KB,
patch
|
tnikkel
:
review+
|
Details | Diff | Splinter Review |
Scrolling http://chrsl.net/gospel/ doesn't feel smooth at all. The background almost seems to lag behind the text.
[Nightly 17.0a1 (2012-08-22), pixel-scrolling with two fingers on trackpad]
| Assignee | ||
Comment 1•13 years ago
|
||
stellar.js runs a requestAnimationFrame loop which polls the current scroll position and updates background positions accordingly. I think the problem is AsyncScroll adds itself as a Flush_Display refresh observer, meaning that requestAnimationFrame callbacks run before the scroll event. So the sequence of events is:
1) user triggers scroll
2) refresh driver runs:
2a) stellar.js's requestAnimationFrame callback runs, sees nothing has changed
2b) AsyncScroll callback runs and updates scroll position
2c) repaint the window due to scroll
3) refresh driver runs again
3a) stellar.js's requestAnimationFrame callback runs, updates background for new scroll position
3b) repaint the window again for the new background
| Assignee | ||
Comment 2•13 years ago
|
||
Assignee: nobody → roc
Attachment #657956 -
Flags: review?(tnikkel)
Updated•13 years ago
|
Attachment #657956 -
Flags: review?(tnikkel) → review+
| Assignee | ||
Comment 3•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b354d6a9c90
After this has landed for a bit, I think we should lift it up to Aurora, but not Beta. This is not a regression and the way stellar.js polls scroll positions with requestAnimationFrame (and not, say, an onscroll handler) is a bit strange.
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
| Reporter | ||
Comment 5•13 years ago
|
||
It still doesn't feel smooth to me. I filed bug 791424 rather than reopening this.
You need to log in
before you can comment on or make changes to this bug.
Description
•