Closed
Bug 514623
Opened 15 years ago
Closed 14 years ago
strange behavior after clicking anchor links (doesn't scroll directly to anchor?)
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
WORKSFORME
fennec1.0b4
People
(Reporter: Gavin, Unassigned)
References
Details
Attachments
(2 files, 2 obsolete files)
(deleted),
patch
|
bcombee
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
See bug 512277 comment 6. Clicking the links in attachment 370215 [details] results in strange behavior that needs to be investigated.
Updated•15 years ago
|
Assignee: nobody → webapps
Comment 1•15 years ago
|
||
There were two problems:
1) When converting from content scrollbox to browser scrollbox, we must consider the toolbar height.
2) If we jump to an anchor, we updated the browser scrollbox. If we scroll back up to the link to the anchor, the browser will still think it is at the anchor and will not fire a scroll event. We fix this by scrolling browser whenever we pan content.
Attachment #401350 -
Flags: review?(combee)
Updated•15 years ago
|
Attachment #401350 -
Flags: review?(mark.finkle)
Comment 2•15 years ago
|
||
Comment on attachment 401350 [details] [diff] [review]
Sync browser scroll and content scroll
Looks good and works on some test case. Good job
Can you file a bug for the "incorrect behavior if page scrolled to y=0" and we can reference it in the comment.
Attachment #401350 -
Flags: review?(mark.finkle) → review+
Comment 3•15 years ago
|
||
Now we use an ugly flag to ignore scroll events created by us (making sure not to set the flag unless we really really scrolled). Also, as discussed on IRC, on loading with anchors we scroll to the anchor and float the toolbar. It disappears upon panning.
Attachment #401350 -
Attachment is obsolete: true
Attachment #401499 -
Flags: review?(mark.finkle)
Attachment #401350 -
Flags: review?(combee)
Updated•15 years ago
|
Attachment #401499 -
Flags: review?(combee)
Updated•15 years ago
|
Attachment #401499 -
Flags: review?(mark.finkle) → review+
Comment 4•15 years ago
|
||
Will bug 500732 && bug 479862 be fixed by this?
Comment 5•15 years ago
|
||
Comment on attachment 401499 [details] [diff] [review]
Flag and scrolling on load
+'d with a nit:
move _ignorePageScroll out of the BrowserView.prototype and add it to the BrowserView._init function instead.
This doesn't fix Facebook float bar, BTW... that seems to be related to another browser variable and also is affected by zoom level.
Attachment #401499 -
Flags: review?(combee) → review+
Comment 7•15 years ago
|
||
Comment on attachment 401946 [details] [diff] [review]
Take _ignorePageScroll out of prototype
nit fixed
Attachment #401946 -
Flags: review+
Comment 8•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → B4
Comment 9•15 years ago
|
||
I'm still getting some funky anchor link behavior via http://quality.mozilla.org/bugs-life-walkthrough .
Clicking on an anchor link will move the content pane up to the top of the page and then scroll the page down to the location of anchor.
Comment 10•15 years ago
|
||
(In reply to comment #9)
> I'm still getting some funky anchor link behavior via
> http://quality.mozilla.org/bugs-life-walkthrough .
>
> Clicking on an anchor link will move the content pane up to the top of the page
> and then scroll the page down to the location of anchor.
Which is probably what happens, you're just seeing an intermediate step. On long, slow loading pages, I see the same thing in Firefox
Comment 11•15 years ago
|
||
It's because onLocationChange will scroll the page to the top before the click goes through, erroneously assuming all location changes require a page load. Moved scrollContentToTop to the network start loading code for tabs, what do you think?
Attachment #402118 -
Flags: review?(mark.finkle)
Comment 12•15 years ago
|
||
Reopening for Aakash's concerns.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 13•15 years ago
|
||
2.78 - this.contentScrollbox.customDragger.dragMove(0, dy, this.contentScrollboxScroller);
2.79 + Browser.contentScrollboxScroller.scrollBy(0, dy);
2.80 + bv.scrollBrowserToContent();
2.81
This code needs to move sidebars, so the dragMove call is more-correct. The scrollBy here gets overridden by the call to scrollBrowserToContent -- probably need to merge these things together. Also fix the issue from 518763.
Comment 14•15 years ago
|
||
@stuart: Actually I think scrollBrowserToContent is correct. scrollBy in zoom scrolls the content area, but the scrollBrowserToContent scrolls the browser element to the content's new scroll position.
The other problem is the panning regression. The entire viewport is rerendered on updating the browser scroll, even if no position:fixed elements need repainting.
Comment 15•15 years ago
|
||
This patch is being backed out in bug 519231.
Updated•15 years ago
|
Attachment #402118 -
Flags: review?(mark.finkle) → review?
Comment 16•15 years ago
|
||
Comment on attachment 402118 [details] [diff] [review]
Scroll to top moved to tab startLoading
Cleaning up review requests, sorry for spam
Attachment #402118 -
Flags: review?
Updated•15 years ago
|
Assignee: webapps → nobody
Comment 18•14 years ago
|
||
Fixed in Fennec trunk, fixed in part by bug 598391.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 14 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•