Closed LancerComet closed 1 year ago
@LancerComet, thank you for pointing this out! Sorry for my late reply. I was pretty busy in the past few weeks. I will look into it, hopefully in the next few days, and get back here.
@LancerComet, now I'm firing pointer events additionally when they are supported: Release 1.5.0 Thanks again. Let me know, if there are any bugs.
The document says
So it seems like it is possible to have a
type
to be apointerdown
or apointerup
. But after reading the codes I have found that it is impossible to be like that, because the pointer events use the mouse events' handlers (code is here), and the mouse events just firemouseup
andmousedown
.So it is a little bit confusing, this is what you think:
but this is what you actually have to do:
So this is my suggestion:
pointerdown
andpointerup
from the document.pointerdown
andpointerup
when PointerEvent is supported.Best wishes