Closed Bug 808847 Opened 13 years ago Closed 13 years ago

Work - For WinRT touch input, do not send mouse events except when a single-tap is detected

Categories

(Core :: Widget: Win32, defect)

18 Branch
All
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mbrubeck, Assigned: TimAbraldes)

References

Details

(Whiteboard: work=feature [completed-elm])

Attachments

(2 obsolete files)

Currently on Metro, every pointer press or release results in a mouseup or mousedown event, even for touch or stylus pointers. Instead, we should dispatch mouse events only if the pointer is a physical mouse, or (for compatibility) when we detect a "tap" gesture from a non-mouse pointer. This matches the expected behavior of touch events and mouse events expected by web content, so that we can get rid of our front-end input filtering (bug 794621) and just let Gecko dispatch events directly to content.
I think we should include pen input in the mouse category, since it's precise input. thoughts?
Attached patch patch v.1 (obsolete) — Splinter Review
Assignee: nobody → jmathies
(In reply to Jim Mathies [:jimm] from comment #1) > I think we should include pen input in the mouse category, since it's > precise input. thoughts? I was thinking pen input would be treated like touch since it probably has similar gestures (I'm assuming that "tap and hold" is the "right-click" gesture for pen)
Attached patch WIP patch (obsolete) — Splinter Review
Per discussion at the metro dev meeting and in #windev, I'm nabbing this bug. The attached patch incorporates Jim's changes, as well as including support for touch events (patch from bug 745071 ported to VS2010). It needs to be cleaned up (add comments, make sure all events are sent correctly, etc), but it passes my preliminary testing
Attachment #678685 - Attachment is obsolete: true
Assignee: jmathies → tabraldes
Adding metro-it1 since I'm working on this presently
Whiteboard: [metro-it1]
Can we get an updated patch merged to elm tip for testing bug 794621?
Comment on attachment 681219 [details] [diff] [review] WIP patch Please look at bug 794621 for updated patches that include a fix for this bug.
Attachment #681219 - Attachment is obsolete: true
The patches in bug 794621 have been submitted to elm. The patch that contains the changes for this bug is: https://hg.mozilla.org/projects/elm/rev/e38fa39ccf69 This build contains the changes: https://tbpl.mozilla.org/?tree=Elm&rev=e38fa39ccf69
Status: NEW → ASSIGNED
Whiteboard: [metro-it1] → [metro-it1][completed-elm]
Summary: For WinRT touch input, do not send mouse events except when a single-tap is detected → Work - For WinRT touch input, do not send mouse events except when a single-tap is detected
Whiteboard: [metro-it1][completed-elm] → work=feature [completed-elm]
Marking my [completed-elm] bugs as resolved
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: