Closed
Bug 499277
Opened 15 years ago
Closed 15 years ago
Once unzoom, dblClickink can thrown an error : aElement is null
Categories
(Firefox for Android Graveyard :: Panning/Zooming, defect)
Firefox for Android Graveyard
Panning/Zooming
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
Details
Attachments
(1 file, 3 obsolete files)
1.59 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
1. Launch Fennec 2. Unzoom with the mouse wheel 3. dblClick somewhere on the white part
Attachment #384076 -
Flags: review?(combee)
Comment 1•15 years ago
|
||
Comment on attachment 384076 [details] [diff] [review] Check if zoomElement is null > let firstEvent = this._events[0].event; > let zoomElement = optimalElementForPoint(firstEvent.clientX, firstEvent.clientY); > >- if (zoomElement != this._zoomedTo) { >+ if (zoomElement && zoomElement != this._zoomedTo) { > this._zoomedTo = zoomElement; > Browser.canvasBrowser.zoomToElement(zoomElement); >- } else { >+ } else if (zoomElement) { > this._zoomedTo = null; > Browser.canvasBrowser.zoomFromElement(zoomElement); > } How about just nesting the existing if/else in an | if (zoomElement) | so we don't need to check the "if" and the "else" tests.
Assignee | ||
Comment 2•15 years ago
|
||
Attachment #384076 -
Attachment is obsolete: true
Attachment #384076 -
Flags: review?(combee)
Updated•15 years ago
|
Attachment #384096 -
Flags: review+
Comment 3•15 years ago
|
||
Comment on attachment 384096 [details] [diff] [review] Updated patch For some reason, zooming out is not working.
Attachment #384096 -
Flags: review+ → review-
Assignee | ||
Comment 4•15 years ago
|
||
Correct zoomToElement/zoomFromElement error I've made. (Thanks for reporting me the error Mark)
Attachment #384096 -
Attachment is obsolete: true
Assignee | ||
Comment 5•15 years ago
|
||
Attachment #384103 -
Attachment is obsolete: true
Comment 6•15 years ago
|
||
Comment on attachment 384106 [details] [diff] [review] last one I hope :) Works well, thanks
Attachment #384106 -
Flags: review+
Comment 7•15 years ago
|
||
https://hg.mozilla.org/mobile-browser/rev/e751aa154122
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → 21
Updated•14 years ago
|
Component: General → Panning/Zooming
You need to log in
before you can comment on or make changes to this bug.
Description
•