You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
In Chrome, you can put two fingers on either the red or the green area and the number of fingers will be displayed in the top left.
But in Firefox, it only works in the green area. When you put the first finger on red, everything is fine. As soon as you put a second finger down, the number goes to 0.
I've tracked the bug down to Firefox firing the pointercancel event when you put the second finger down. This only seems to occur in SVG elements like rect.
Is this something that should be handled by this library or if this is a bug that should be reported to Mozilla.
Put the following
/demo/index.html:You should see the following:

In Chrome, you can put two fingers on either the red or the green area and the number of fingers will be displayed in the top left.
But in Firefox, it only works in the green area. When you put the first finger on red, everything is fine. As soon as you put a second finger down, the number goes to 0.
I've tracked the bug down to Firefox firing the
pointercancelevent when you put the second finger down. This only seems to occur in SVG elements likerect.Is this something that should be handled by this library or if this is a bug that should be reported to Mozilla.