Closed Bug 1281119 Opened 8 years ago Closed 8 years ago

Check existence of event.detail.swipe before converting touchend events into key events for remote-control service

Categories

(Firefox OS Graveyard :: Gaia::TV, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: chunmin, Assigned: chunmin)

References

Details

Attachments

(1 file)

The remote-control server on TV side will convert the touch events sent from Fennec side into the key events by the "swipe" value of the "touchend" messages[0] if the control mode is not "cursor" mode.

However, the "swipe" might not exist in touchend messages. There is a move threshold for touch-pad control to filter the input of inadvertent touch. Thus, I think we might need to check existence of event.detail.swipe before converting touchend events into key events[2].


[0] https://wiki.mozilla.org/Firefox_OS/Remote_Control#Touch_Events
[1] https://github.com/ChunMinChang/fennec-fxos-tv/blob/master/content/remote-control-client/js/panel_element.js#L11
[2] https://github.com/mozilla-b2g/gecko-b2g/blob/b2g48_v2_6/b2g/chrome/content/remote_command.js#L133
Hi SC,
Could you review this small change?
Assignee: nobody → cchang
Status: NEW → ASSIGNED
Attachment #8763809 - Flags: review?(schien)
Blocks: TV_FxOS2.6
See Also: → 1278773
Comment on attachment 8763809 [details] [diff] [review]
[v1] check event.detail.swipe of touchend events

Review of attachment 8763809 [details] [diff] [review]:
-----------------------------------------------------------------

If |detail.swipe| is not existed, it shall fall into default case and does nothing. Not sure why this modification make difference.
Attachment #8763809 - Flags: review?(schien) → review-
Oh yeah, it my bad. False alarm!
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
See Also: 1278773
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: