bobboteck / JoyStick

A simple JoyStick that use HTML5, Canvas and Vanilla JavaScript, for touch and mouse interfaces (no JQuery required), preview at:
https://bobboteck.github.io/joy/joy.html
MIT License
365 stars 98 forks source link

fixed issue #19 #21

Closed amjadAH closed 3 years ago

amjadAH commented 3 years ago

I changed the mousemove & mouseup listener to be on the document object instead of the canvas, also I updated the minified file.

kethan1 commented 3 years ago

Doesn't seem to work: https://jsfiddle.net/KetZoomer/xsz0c3au/

amjadAH commented 3 years ago

@kethan1 This code is not my updated code, you can check my code here, I don't know why but this cdn service is getting the original code, not the forked one.

Thank you

kethan1 commented 3 years ago

Ah, wonder why JSDeliver isn't working... Anyway, this works, https://jsfiddle.net/KetZoomer/xsz0c3au/2!