changeset 11116:6859462e6792

8183399: long scroll events on mac delta Reviewed-by: kcr
author jvos
date Tue, 20 Nov 2018 15:29:42 +0100
parents 908599063479
children fa5618c135c7 b74c8b1663d4
files modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m	Thu Nov 15 11:51:05 2018 +0530
+++ b/modules/javafx.graphics/src/main/native-glass/mac/GlassViewDelegate.m	Tue Nov 20 15:29:42 2018 +0100
@@ -425,8 +425,8 @@
     jdouble rotationY = 0.0;
     if (type == com_sun_glass_events_MouseEvent_WHEEL)
     {
-        rotationX = (jdouble)[theEvent deltaX];
-        rotationY = (jdouble)[theEvent deltaY];
+        rotationX = (jdouble)[theEvent scrollingDeltaX] * 0.1;
+        rotationY = (jdouble)[theEvent scrollingDeltaY] * 0.1;
 
         //XXX: check for equality for doubles???
         if (rotationX == 0.0 && rotationY == 0.0)