Closed
Bug 1197654
Opened 9 years ago
Closed 7 years ago
Background image scrolling is jumpy when APZ and e10s are enabled on OS X
Categories
(Web Compatibility :: Site Reports, defect, P1)
Tracking
(e10s+, platform-rel +, firefox40 unaffected, firefox41 unaffected, firefox42 unaffected, firefox43 affected)
RESOLVED
INVALID
Tracking | Status | |
---|---|---|
e10s | + | --- |
platform-rel | --- | + |
firefox40 | --- | unaffected |
firefox41 | --- | unaffected |
firefox42 | --- | unaffected |
firefox43 | --- | affected |
People
(Reporter: cpeterson, Unassigned)
References
(Depends on 1 open bug, )
Details
(Keywords: polish, Whiteboard: [gfx-noted][apz-evangelism][no framework] [sitewait] [platform-rel-Amazon])
Attachments
(2 files)
STR:
1. In Nightly, load https://www.amazon.com/clouddrive/home/
2. Watch the background images as you scroll down the page using a track pad or mouse wheel.
RESULT:
The background images "stutter" as they scroll. The problem goes away if you disable e10s and/or layers.async-pan-zoom.enabled.
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Comment 2•9 years ago
|
||
This page doesn't actually use background-attachment:fixed, it seems to use some sort of parallax effect to make the background scroll more slowly than the main page content. I filed bug 1201231 to track parallax issues, and I'm making this depend on that.
Updated•9 years ago
|
Comment 3•9 years ago
|
||
This page is using scroll events to update the position of the background images. They should update to using CSS perspective-based parallax scrolling as described at http://keithclark.co.uk/articles/pure-css-parallax-websites/ in order work smoothly with APZ.
Updated•9 years ago
|
Whiteboard: [apz-evangelism]
Updated•9 years ago
|
Priority: -- → P2
Updated•9 years ago
|
Updated•9 years ago
|
Whiteboard: [apz-evangelism] → [apz-evangelism][no framework]
Comment 4•9 years ago
|
||
We're about as good as Safari on this page now. There's not much else we can do here.
Comment 5•9 years ago
|
||
This is done here in the html page.
//The main function to perform parallax effect
function parrallaxOnScroll (imagePanel) {
// Move the background if the panel is visible
if( isVisible(imagePanel) ) {
var panelHeight = imagePanel.height();
var midHeight = imagePanel[0].getBoundingClientRect().top + (panelHeight / 2);
var midPercentage = (midHeight / winHeight) * 100;
//lets tollerate 50% move up and down of the background image once parts of the image are off screen
if (midPercentage > 150) {
midPercentage = 150;
} else if (midPercentage < -50) {
midPercentage = -50;
}
// Put together our final background position
var coords = '50% '+ midPercentage + '%';
imagePanel.css('background-position', coords );
}
}
//activate parallax effect on scroll of .panel or .img-panel elements
$('.panel, .img-panel').each(function(){
if (isMobile) {
return;
}
var imagePanel = $(this);
// run it the first time to initialize the position
parrallaxOnScroll(imagePanel);
$window.scroll(function() {
parrallaxOnScroll(imagePanel);
});
});
Switching to needscontact.
Whiteboard: [apz-evangelism][no framework] → [apz-evangelism][no framework] [needscontact]
Comment 6•9 years ago
|
||
I wonder if Daniel can help us find the right person at Amazon?
Flags: needinfo?(danielsi)
Comment 7•9 years ago
|
||
The fix on amazon's side here should be pretty simple: The background-attachment of the image needs to be set to fixed, and the background-position needs to be adjusted in such a way that the image is still in the right place (because background-attachment changes what point background-position is relative to). With that change, the image might still lag a bit (which is unavoidable with async scrolling), but at least it won't jitter up and down anymore.
Comment 8•9 years ago
|
||
You may want me to close this now as Resolved-Works For Me. The jaggyness in the background is not appearing for me in:
Name Firefox
Version 47.0a1
Build ID 20160201030241
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0
Comment 9•9 years ago
|
||
I can still see it on OS X. It's probably not as visible on Windows becauase the OS X trackpad scrolling is much faster/smoother so jankiness is more obvious.
Updated•9 years ago
|
Keywords: polish
Whiteboard: [apz-evangelism][no framework] [needscontact] → [gfx-noted][apz-evangelism][no framework] [needscontact]
Comment 10•9 years ago
|
||
I'm moving apz-evangelism bugs that are ready for attention by the Tech Evangelism team (or already in the process of getting it) into the Tech Evangelism component.
Component: Panning and Zooming → Desktop
Product: Core → Tech Evangelism
Version: unspecified → Trunk
Comment 11•8 years ago
|
||
(In reply to Karl Dubost :karlcow from comment #6)
> I wonder if Daniel can help us find the right person at Amazon?
Daniel, any update on this?
Comment 12•8 years ago
|
||
Daniel just reached out on the Amazon partner list.
Flags: needinfo?(danielsi)
Whiteboard: [gfx-noted][apz-evangelism][no framework] [needscontact] → [gfx-noted][apz-evangelism][no framework] [sitewait]
Updated•8 years ago
|
platform-rel: --- → ?
Whiteboard: [gfx-noted][apz-evangelism][no framework] [sitewait] → [gfx-noted][apz-evangelism][no framework] [sitewait] [platform-rel-Amazon]
Updated•8 years ago
|
platform-rel: ? → +
Updated•8 years ago
|
Rank: 3
Comment 13•8 years ago
|
||
Still an issue on OSX.
Comment 14•8 years ago
|
||
Reproducible for me
Version 52.0a1
Build ID 20161109030210
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 15•7 years ago
|
||
Looks like they changed the design.
Comment 16•7 years ago
|
||
The issue
Status: REOPENED → RESOLVED
Closed: 9 years ago → 7 years ago
Priority: P2 → P1
Resolution: --- → INVALID
Assignee | ||
Updated•6 years ago
|
Product: Tech Evangelism → Web Compatibility
You need to log in
before you can comment on or make changes to this bug.
Description
•