Closed
Bug 614562
Opened 14 years ago
Closed 13 years ago
bouncing Element when scrolling
Categories
(Core :: Web Painting, defect)
Tracking
()
RESOLVED
WORKSFORME
mozilla10
People
(Reporter: jara.karel, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101124 Firefox/4.0b8pre
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101124 Firefox/4.0b8pre
I tried to find a suitable existing bug but all were somewhat too much specific or so and therefore I’m filing new one.
On the URL given the position:fixed element on the right is bouncing and even getting out of the view when scrolling. I think that there’s been done a lot about those position:fixed elements and before this behaviour was present on many more sites. I thought it is actually fixed but now I see it on this site.
Reproducible: Always
Steps to Reproduce:
1. Go to www.slevin.cz.
2. Scroll down and up.
Actual Results:
The position:fixed element on the right is flickering and bouncing.
Expected Results:
It should stay on its place and should not move.
Reporter | ||
Comment 1•14 years ago
|
||
Sorry, I’ve found out that this is not position:fixed element but that there’s some javascript scrolling function which keep it fixed. So I don’t know how to name this bug but I think it’s still a bug. Only in Chrome and Safari everything is OK and the element stays in its place all the time. In IE, Firefox and Opera I see the problem described.
Comment 2•14 years ago
|
||
This seems to be the Code making the DIV "fixed" when scrolling:
$(window).scroll(function() {
$('#fb_share').css({
'top':$(window).scrollTop()+75
});
$d = ($(window).scrollTop() > 600)?'block':'none';
$('#top_scroll').css({'display':$d});
if($(window).scrollTop()==0){$('#fb_share').css({
'top':185
});
}
});
No Idea if this good Code or not or if Chrome/Safari is right or not ;)
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Summary: Bouncing of position:fixed element when scrolling → bouncing Element when scrolling
Version: unspecified → Trunk
Comment 3•14 years ago
|
||
For that code to not cause the observed problem, the scroll event would need to fire before the scroll is painted. roc, do we do that?
Component: Layout → Layout: View Rendering
QA Contact: layout → layout.view-rendering
We don't.
Let's fix this post-FF4. When all painting goes through the refresh driver, we can have it flush all pending onscroll events before painting.
Updated•14 years ago
|
Comment 5•13 years ago
|
||
This is still broken in Firefox 9 but appears to be fixed in Firefox 10 on the beta channel.
Status: NEW → RESOLVED
Closed: 13 years ago
No longer depends on: compositor, 598482
Resolution: --- → WORKSFORME
Target Milestone: --- → mozilla10
Assignee | ||
Updated•6 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•