Closed Bug 708538 Opened 14 years ago Closed 14 years ago

[Gonk] Update the 'b2g' directory with changes since last import

Categories

(Core :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: philikon, Assigned: philikon)

References

Details

Attachments

(2 files)

vingtetun snuck in a few more changes to the 'b2g' dir since the import.
Attachment #579980 - Flags: review?(jones.chris.g) → review+
Comment on attachment 579981 [details] [diff] [review] Part 2 (v1): Use setTimeout(..., 0) to send the click event from touch.js I don't understand this patch but OK :).
Attachment #579981 - Flags: review?(jones.chris.g) → review+
(In reply to Chris Jones [:cjones] [:warhammer] from comment #3) > Comment on attachment 579981 [details] [diff] [review] > Part 2 (v1): Use setTimeout(..., 0) to send the click event from touch.js > > I don't understand this patch but OK :). setTimeout(function() {}, 0) is often used to get out of the event loop. In this case it is used to ensure the click event dispatch is finished and so we can start to fire a new mouse events sequence.
(In reply to Vivien Nicolas (:vingtetun) from comment #5) > (In reply to Chris Jones [:cjones] [:warhammer] from comment #3) > > Comment on attachment 579981 [details] [diff] [review] > > Part 2 (v1): Use setTimeout(..., 0) to send the click event from touch.js > > > > I don't understand this patch but OK :). > > setTimeout(function() {}, 0) is often used to get out of the event loop. > In this case it is used to ensure the click event dispatch is finished and > so we can start to fire a new mouse events sequence. Keep in mind that setTimeout(function() {}, 0) comes with ~5ms delay. Not a big deal though.
How about postMessage instead?
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
(In reply to Andreas Gal :gal from comment #7) > How about postMessage instead? I really want to fire events - because of gaia but also because of others that are creating their own UI.
No, I meant instead of setTimeout(0) send yourself a postmessage. That has no 5ms delay.
Blocks: 709468
Depends on: 709469
(In reply to Andreas Gal :gal from comment #10) > No, I meant instead of setTimeout(0) send yourself a postmessage. That has > no 5ms delay. Since this bug is closed already, I filed bug 709469 to investigate this.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: