Open Bug 2091573 Opened 18 days ago Updated 11 days ago

OnTouchPointerEvents returns MULTITOUCH_END with all the contacts in the pointer frame

Categories

(Core :: Widget: Win32, defect)

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.

See Also: → 2089067

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.

Severity: -- → S3

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.

You need to log in before you can comment on or make changes to this bug.