From e383016b737a7e10a3283f9db2ae7690ad9fa72d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Jul 2019 21:07:14 +0200 Subject: 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. --- pugl/detail/mac.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pugl') 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); } -- cgit v1.2.1