[Pointer Event] https://patrickhlauke.github.io/touch/particle/3b/ with multiple touches doesn't work as smooth as other browser
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
People
(Reporter: admin, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
text/plain
|
Details |
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
For the comment #0 case, we do assign a different pointerId for each second down, but we fire an additional pointerdown event for first touch (which is not released yet). Chrome only fire one pointerdown event. Maybe the page receives the event for first touch, so it thinks the pointerId isn't changed? I will try to fix this to see if it makes page works as expected.
Comment 6•6 years ago
|
||
(In reply to Edgar Chen [:edgar] from comment #5)
For the comment #0 case, we do assign a different pointerId for each second down, but we fire an additional pointerdown event for first touch (which is not released yet). Chrome only fire one pointerdown event.
Filed bug 1521082. Comment #0 is improved a bit. but still doesn't as smooth as Chrome or Edge.
Reporter | ||
Comment 7•6 years ago
|
||
(In reply to Edgar Chen [:edgar] from comment #6)
(In reply to Edgar Chen [:edgar] from comment #5)
For the comment #0 case, we do assign a different pointerId for each second down, but we fire an additional pointerdown event for first touch (which is not released yet). Chrome only fire one pointerdown event.
Filed bug 1521082. Comment #0 is improved a bit. but still doesn't as smooth as Chrome or Edge.
Thank you for taking a look at this issue and fixing it (in partial).
However I found an issue when trying to test your changes in the latest nightly.
The problem seems that when you call preventDefault() on a event, "pointermove" will only be detected for one finger.
Steps to repeat (Requires a touch input):
- Open https://marci4.github.io/firefox/pointerevents/preventdefaultandmove.html
- Put one finger inside the left rectangle, and one inside the right rectangle and move both fingers together down/up.
Is: Only the move of one rectangle (left or right) is getting detected
Should: Boths for both rectangles should be getting detected
When I am not using preventDefault() everything is getting detected correctly.
If you need any more information, feel free to ping me!
Best regards,
Marcel
Comment 8•6 years ago
|
||
(In reply to Marcel Prestel from comment #7)
However I found an issue when trying to test your changes in the latest nightly.
The problem seems that when you call preventDefault() on a event, "pointermove" will only be detected for one finger.
Thanks for reporting this, file a separated bug 1524251.
Comment 9•6 years ago
|
||
(In reply to Edgar Chen [:edgar] from comment #6)
(In reply to Edgar Chen [:edgar] from comment #5)
For the comment #0 case, we do assign a different pointerId for each second down, but we fire an additional pointerdown event for first touch (which is not released yet). Chrome only fire one pointerdown event.
Filed bug 1521082. Comment #0 is improved a bit. but still doesn't as smooth as Chrome or Edge.
I quickly ran a trial build including a fix for bug 1323400, it now works as smooth as Chrome or Edge for comment #0 case.
But it still doesn't help comment #7 case (which is now tracked by bug 1524251).
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Reproduced on Lenovo Yoga C630-13Q50 with Windows 10 Home (v1803) on latest Nightly aarch64 build.
Assignee | ||
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Per comment #9, I think we could close this bug. Feel free to reopen it or file a new bug.
Description
•