skelterjohn / go.wde

Windows, drawing and events for Go
217 stars 46 forks source link

osx: add support for mousewheel, non-primary buttons and gestures #49

Closed sqweek closed 8 years ago

sqweek commented 8 years ago

I got to spend some quality time with an actual OSX box yesterday, and added support for some mouse/gesture events which were previously ignored:

This PR adds support for all three; I consider gestures essential for providing a quality ux on the platform. Notes:

tcolar commented 8 years ago

FYI, I tried this (except gestures) and works properly on Lion. PS : Yes OSX scrolling is "backward", that's just how they do it.

sqweek commented 8 years ago

Thanks for confirming! I wasn't entirely sure whether the scroll wheel thing was a glitch with my hardware, as the only usb mouse I could test with is an obscure old trackball model :)

sqweek commented 8 years ago

Decided to flip the mouse wheel events around after all. It feels like a lie but provides a better user experience overall IMO.