Closed Bug 441584 Opened 16 years ago Closed 16 years ago

Panning leaves white space

Categories

(Firefox for Android Graveyard :: Panning/Zooming, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED
fennec1.0m5

People

(Reporter: dougt, Assigned: Gavin)

Details

Attachments

(1 file, 1 obsolete file)

If I end a pan outside of the content area, the content area is not refreshed.

For example, if I click in the center of the page, then drag my finger over the urlbar and release, the content area remain white and does not refresh.
Attached patch patch (obsolete) — Splinter Review
- _scrollStartTimeout checks removed (redundant, checking .dragging is sufficient)
- factored some code out into a more descriptive method (_endPan)
- moved .dragging = false; to _endPan. Only reason is was done unconditionally in mouseup was as a workaround for this bug (so you could at least click to refresh)
Attachment #326592 - Flags: review?(mark.finkle)
Comment on attachment 326592 [details] [diff] [review]
patch

>diff --git a/chrome/content/deckbrowser.xml b/chrome/content/deckbrowser.xml

>+            if (aEvent.button == 0 && this.deckbrowser.dragData.dragging) {

aEvent.button == 0 isn't that critical is it? But will help when testing on desktop.
Attachment #326592 - Flags: review?(mark.finkle) → review+
Actually there's a problem with that patch - it interferes with clicks on the location bar (because it preventDefault()s the mouseup). We don't want to redispatch the click for mouseups on the toolbar, either. Also the preventDefault()s and returns are unneeded afaict.
Attached patch updated patchSplinter Review
Attachment #326592 - Attachment is obsolete: true
http://hg.mozilla.org/mobile-browser/index.cgi/rev/cb7f12c5617d
Status: NEW → RESOLVED
Closed: 16 years ago
OS: Mac OS X → All
Priority: -- → P1
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → Fennec M5
(In reply to comment #2)
> aEvent.button == 0 isn't that critical is it? But will help when testing on
> desktop.

yeah, exactly.
verified with beta3
Status: RESOLVED → VERIFIED
Component: General → Panning/Zooming
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: