OnTouchPointerEvents returns MULTITOUCH_END with all the contacts in the pointer frame
Categories
(Core :: Widget: Win32, defect)
Tracking
()
People
(Reporter: canalun, Unassigned)
References
Details
nsWindow::OnTouchPointerEvents returns MULTITOUCH_END with mTouches including all the contacts in the pointer frame, while nsWindow::OnTouch returns it with mTouches including only the contact lifted at the time.
This behavior leads to the inconsistency with TouchCounter, because TouchCounter assumes MULTITOUCH_END's mTouches includes only the lifted contact.
For example, TouchCounter::GetActiveTouchCount() gets 0 by putting down finger A, putting down finger B, and lifting B. It's not correct, because finger A is still being put on the screen.
This behavior caused bug 2089067, which was fixed by a temporary fix.
Comment 1•12 days ago
|
||
We're using GetPointerFrameTouchInfo in nsWindow::OnTouchPointerEvents, which gets all of the touches that are part of the "frame", the frame being the multitouch. Instead, we need to consult aWParam (currently ignored) to get the touch the event was for. This would mean that MULTITOUCH_* events from pointers would never be "multi", so there is probably more to this.
Comment 2•11 days ago
|
||
Note that TouchCounter is not used only for swipe navigation, it's been used for a variety of purposes. There might be some bug reports caused by this bug. :/
Also note that as far as I check Chrome doesn't use GetPointerFrameTouchInfo.
Description
•