Closed
Bug 636792
Opened 14 years ago
Closed 14 years ago
Coalesce keyboard pan with zoom to element pan
Categories
(Firefox for Android Graveyard :: Panning/Zooming, defect)
Firefox for Android Graveyard
Panning/Zooming
Tracking
(firefox6 fixed, fennec6+)
VERIFIED
FIXED
People
(Reporter: stechz, Assigned: vingtetun)
References
Details
Attachments
(2 files)
3.01 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
1.79 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
The technicalities of this might be annoying to get right, but form assistant would feel soooo much better if it anticipated the keyboard coming up before transitioning to the next for element and vise versa. I promise.
Reporter | ||
Comment 1•14 years ago
|
||
Also, we need to bring the keyboard up/down after the animation has finished. Our resize takes too long.
Comment 2•14 years ago
|
||
I don't think this blocks 2.0, but certainly is something we should add. This plays into something Vivien once mentioned - about keeping the keyboard visible while navigating a form. So, once the keyboard becomes visible, we keep it visible until the users taps focus off a widget or uses the back button to close the keyboard.
tracking-fennec: --- → 2.0next+
Reporter | ||
Comment 3•14 years ago
|
||
This is not what I meant, though that would work too (might be better?). But it is key that the keyboard is not changing during our animation.
Assignee | ||
Comment 4•14 years ago
|
||
Hey I'm planning to fix bug 636339 before 2.0. The plan is to have the keyboard _always_ open while handling forms, this will allow you to navigate through list and to use the "next" key on all elements (in such a case the navigation buttons will be hidden on Android)
Updated•14 years ago
|
Assignee: nobody → 21
Updated•14 years ago
|
tracking-fennec: 2.0next+ → 6+
Assignee | ||
Comment 6•14 years ago
|
||
The patch use the new Util.isKeyboardOpened method and add an event generated when the state of the keyboard change.
This prevent doing extra zooming operations when the keyboard is shown.
Attachment #533683 -
Flags: review?(mark.finkle)
Comment 7•14 years ago
|
||
Comment on attachment 533683 [details] [diff] [review]
Patch
Make sure you test this on a few devices. I am worried about race conditions with the KeyboardChanged event. Your current code checks to make sure the keyboard is not open before listening for the event, but I still worry.
Attachment #533683 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 8•14 years ago
|
||
(In reply to comment #7)
> Comment on attachment 533683 [details] [diff] [review] [review]
> Patch
>
> Make sure you test this on a few devices. I am worried about race conditions
> with the KeyboardChanged event. Your current code checks to make sure the
> keyboard is not open before listening for the event, but I still worry.
I understand why you are worried.
I can still add a timeout, so if the event never fires or we miss the form assistant will still react, what do you think?
Comment 9•14 years ago
|
||
Let's land it as is for now. No need to complicate the code unless we see some problems during testing.
Assignee | ||
Comment 10•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•14 years ago
|
||
I have broke the browser_autocomplete.js test with this change, I'll add a followup.
Assignee | ||
Comment 12•14 years ago
|
||
The followup ensure the form assistant has received and process the opening message before sending an autocomplete message to the form assistant :)
This also prevent doing the test on desktop where there is no such thing, otherwise the show method wait for a KeyboardChanged event that is never fired...
Attachment #534795 -
Flags: review?(mark.finkle)
Comment 13•14 years ago
|
||
Comment on attachment 534795 [details] [diff] [review]
Patch - followup
>+ timer.interval(100, function() {
This makes me cry
Assignee | ||
Comment 14•14 years ago
|
||
(In reply to comment #13)
> Comment on attachment 534795 [details] [diff] [review] [review]
> Patch - followup
>
> >+ timer.interval(100, function() {
>
> This makes me cry
This is basically a waitFor! Maybe I should write such a method for the content side?
Updated•14 years ago
|
Attachment #534795 -
Flags: review?(mark.finkle) → review+
Comment 15•14 years ago
|
||
I pushed that to try (along with some other stuff), and it seems to make Android time out even earlier, after the initial "Click on a datalist element and show suggestions" step rather than after the current "Check arrows visibility" step.
Assignee | ||
Comment 16•14 years ago
|
||
(In reply to comment #15)
> I pushed that to try (along with some other stuff), and it seems to make
> Android time out even earlier, after the initial "Click on a datalist
> element and show suggestions" step rather than after the current "Check
> arrows visibility" step.
I have simplified the test because of bug 659651, should works now.
http://hg.mozilla.org/mozilla-central/rev/74ec824bffe6
Assignee | ||
Comment 17•14 years ago
|
||
gasp, still not work like what I want on device...
Comment 18•14 years ago
|
||
Or off, since now you've got two TEST-UNEXPECTED-PASS errors on desktop ;)
Updated•14 years ago
|
status-firefox6:
--- → fixed
Comment 19•14 years ago
|
||
I tried to verify this bug using steps from bug 640754 which is duplicate of this bug.
When I tap on the search field in google.com everything it's ok but when I hit back or tap outside the vkb to close it I still can see the black flicker. I see Bug 627557 is new.
Should I close this bug or Bug 627557 as dupe of this and reopen this one?
Comment 20•14 years ago
|
||
Verified fixed on Firefox 6 Beta 2: Mozilla /5.0 (Android;Linux armv7l;rv:6.0) Gecko/20110713 Firefox/6.0 Fennec/6.0
Comment 21•14 years ago
|
||
Mozilla /5.0 (Android;Linux armv7l;rv:6.0) Gecko/20110713 Firefox/6.0 Fennec/6.0
Updated•14 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•