Closed
Bug 721787
Opened 13 years ago
Closed 13 years ago
Double tap zoom takes too long to respond
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Firefox for Android Graveyard
General
Tracking
(blocking-fennec1.0 beta+, fennec+)
RESOLVED
DUPLICATE
of bug 741565
People
(Reporter: wesj, Assigned: kats)
References
Details
When the user double taps to zoom we should start responding instantly. Right now we have to send messages across the bridge and wait for a response with the appropriate rect to zoom to. If there's anything else hogging the queue, that can take seconds.
We could start a guessy zoom and then adjust midway through, but that assumes that we hear back from content within a few 10s of ms I think. Since we can't count on that, I think we may need to prioritize these messages. Maybe even write a special no-JSON conversion path for them? Would be good to get some profiling to know exactly where the slowdown is as well.
Updated•13 years ago
|
Assignee: nobody → wjohnston
tracking-fennec: --- → +
Priority: -- → P3
Assignee | ||
Comment 1•13 years ago
|
||
Part of the problem here might also be that the first thing in a double-tap is a onDown, which sends the same Gesture:ShowPress as in bug 741228. I haven't verified this but it shouldn't be too hard to check, I will do that and report back here.
Comment 2•13 years ago
|
||
FWIW, Chrome zooms in by a fixed amount on double tap so they don't need to do as much work.
Updated•13 years ago
|
blocking-fennec1.0: --- → ?
Assignee | ||
Comment 3•13 years ago
|
||
It is in fact sending a Gesture:ShowPress on the first touch-down of the double-tap. It also sends a second Gesture:ShowPress on the second touch-down, but fortunately that happens after onDoubleTap (at least on the GN; it might be dependent on how manufacturers have modified the android GestureDetector).
Assignee | ||
Comment 4•13 years ago
|
||
Also, the 200ms delay in the LayerController touch event code is coming into play here.
Assignee | ||
Comment 5•13 years ago
|
||
FWIW, I don't see the JSON serialization taking any significant amount of time here. I don't think that's the problem. It seems to be a combination of waiting the 200ms for the touch event handlers to run (bug 741565), followed by running the Gesture:ShowPress handler (bug 741228) before we get to the Gesture:DoubleTap. The DoubleTap handler itself probably takes a bit of time to run since it also does a anyElementFromPoint call.
Assignee | ||
Updated•13 years ago
|
Summary: Double tap zoom takes to long to respond → Double tap zoom takes too long to respond
Updated•13 years ago
|
Assignee: wjohnston → bugmail.mozilla
blocking-fennec1.0: ? → beta+
Comment 6•13 years ago
|
||
Is bug 741228 the real issue here? Is this bug even a blocker on it's own?
Assignee | ||
Comment 7•13 years ago
|
||
I think fixing 741565 mostly took care of this. It can be improved further, but right now the delay is not really noticeable to the user. Marking as fixed.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 8•13 years ago
|
||
Verified/fixed on:
Nightly Fennec 15.0a1 (2012-04-25)
Device: HTC Desire Z
Status: RESOLVED → VERIFIED
Updated•13 years ago
|
Status: VERIFIED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: FIXED → DUPLICATE
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•