haxeui / haxeui-html5

The HTML5 backend of the HaxeUI framework -
http://haxeui.org
MIT License
28 stars 14 forks source link

Use HTML5 Pointer Events API instead of deprecated MouseEvent and TouchEvent #38

Closed Bloodninj closed 1 year ago

Bloodninj commented 1 year ago

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

ianharrigan commented 1 year ago

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!