This PR makes some changes to respond to the more modern and input-agnostic Pointer Events API for input from the browser, rather than relying on the older MouseEvent and TouchEvent APIs. This helps it to work better with input devices like pen/stylus, without adversely changing the existing mouse-oriented code.
Im going to close this since ive reimplemented this (using this PR as a guide) with a few tiny changes - as discussed it all seems to work - so thank for it!
This PR makes some changes to respond to the more modern and input-agnostic Pointer Events API for input from the browser, rather than relying on the older MouseEvent and TouchEvent APIs. This helps it to work better with input devices like pen/stylus, without adversely changing the existing mouse-oriented code.
https://user-images.githubusercontent.com/79861976/205028414-6c809924-9dab-4904-9895-28340acc1fb9.mp4