biodiv / contactjs

Pointer gestures for your webapp
MIT License
77 stars 6 forks source link

Casing for native JS events hook options wrong? #40

Closed doompadee closed 1 year ago

doompadee commented 1 year ago

The documentation states that hooks can be added for the native JavaScript events, like pointerDown etc. But the actual code uses all lowercase names and the hooks therefore did not work for me at first.

TBG-FR commented 1 year ago

You're right ! I also followed the documentation and used pointerDown/pointerMove/pointerUp/pointerOut/pointerCancel. Nothing happens, and you do not get any error 😵

Now with pointerdown/pointermove/pointerup/pointerout/pointercancel I can catch events ! Thanks 🌞

biodiv commented 1 year ago

I will update the docs to represent the correct casing. The code will stay as is regarding this matter.

biodiv commented 1 year ago

updated the docs