Closed
Bug 517658
Opened 15 years ago
Closed 15 years ago
When adding MozOrientation listener, the listener is called only after there is orientation change
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta1-fixed |
People
(Reporter: smaug, Assigned: smaug)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
777 bytes,
patch
|
dougt
:
review+
benjamin
:
approval1.9.2+
|
Details | Diff | Splinter Review |
I think this is a regression. We don't get the event somewhat soon after adding the listener. And we should, so that web app can know the current orientation. At least on mac I need to wait several seconds before I get the first event (if I don't move the laptop).
Assignee | ||
Comment 1•15 years ago
|
||
Probably a regression from bug 512237, since that added the -1,1 checks. This could be solved by adding values outside -1,1 or setting values to be always within -1,1
Assignee | ||
Comment 2•15 years ago
|
||
Without this getting fixed, the event is pretty useless :(
Depends on: 513910
Assignee | ||
Comment 3•15 years ago
|
||
Attachment #401617 -
Flags: review?(doug.turner)
Assignee | ||
Comment 4•15 years ago
|
||
we need to do at least what the patch does. Or we can wait until bug 513910 is fixed.
Assignee | ||
Comment 5•15 years ago
|
||
I know in some bug I argued that this is not the right thing to do, and it isn't, but at least it is better than current behavior :/
Comment 6•15 years ago
|
||
i would rather just drop the check complete (eg. fix 513910).
Comment 7•15 years ago
|
||
olli, do you want to post a patch that just removes that filtering and update the idl?
Assignee | ||
Comment 8•15 years ago
|
||
Not until I know the answer to https://bugzilla.mozilla.org/show_bug.cgi?id=513910#c2
Comment 9•15 years ago
|
||
answered.
Comment 10•15 years ago
|
||
Comment on attachment 401617 [details] [diff] [review] patch lets to with this. Maybe we should have a separate event that exposed actual force.
Attachment #401617 -
Flags: review?(doug.turner)
Attachment #401617 -
Flags: review+
Attachment #401617 -
Flags: approval1.9.2?
Assignee | ||
Comment 11•15 years ago
|
||
Yeah, this is not perfect but works quite well in common cases. Perhaps we could report avg of previous N accelerometer values to get more "correct" orientation and have separate thing for force. http://hg.mozilla.org/mozilla-central/rev/ced7e965f6dc
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Attachment #401617 -
Flags: approval1.9.2? → approval1.9.2+
Comment 12•15 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/fc607d2689a3
status1.9.2:
--- → beta1-fixed
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → Olli.Pettay
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•