diff options
author | David Robillard <d@drobilla.net> | 2019-07-28 21:07:14 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-29 22:40:19 +0200 |
commit | e383016b737a7e10a3283f9db2ae7690ad9fa72d (patch) | |
tree | 5ae16842a4713db99addb76e468d791586264fd1 /pugl | |
parent | b5b0b7c06f0caaf5dd3abd6213b51aa3d77f1c00 (diff) | |
download | pugl-e383016b737a7e10a3283f9db2ae7690ad9fa72d.tar.gz pugl-e383016b737a7e10a3283f9db2ae7690ad9fa72d.tar.bz2 pugl-e383016b737a7e10a3283f9db2ae7690ad9fa72d.zip |
Mac: Use scrolling delta for scroll events
I am not sure exactly what the difference is between these, but the
documentation says to use these for scroll events. They do have different
values for touchpads and the scrolling one feels a bit nicer.
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/detail/mac.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m index 78a6d39..d964b7e 100644 --- a/pugl/detail/mac.m +++ b/pugl/detail/mac.m @@ -410,8 +410,8 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type) rloc.x, [[NSScreen mainScreen] frame].size.height - rloc.y, getModifiers(event), - [event deltaX], - [event deltaY] + [event scrollingDeltaX], + [event scrollingDeltaY] }; puglDispatchEvent(puglview, (const PuglEvent*)&ev); } |