aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-28 21:07:14 +0200
committerDavid Robillard <d@drobilla.net>2019-07-29 22:40:19 +0200
commite383016b737a7e10a3283f9db2ae7690ad9fa72d (patch)
tree5ae16842a4713db99addb76e468d791586264fd1 /pugl
parentb5b0b7c06f0caaf5dd3abd6213b51aa3d77f1c00 (diff)
downloadpugl-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.m4
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);
}