[gtk/wip/chergert/gdk-macos-fixes: 5/9] macos: remove workaround for scroll delta
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/gdk-macos-fixes: 5/9] macos: remove workaround for scroll delta
- Date: Sat, 10 Oct 2020 03:20:18 +0000 (UTC)
commit 3f519e4d9be46169eb9407a0f353e65c306812fd
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 9 20:02:38 2020 -0700
macos: remove workaround for scroll delta
This gets handled differently in gtk/ and so we shouldn't translate it here.
gdk/macos/gdkmacosdisplay-translate.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/gdk/macos/gdkmacosdisplay-translate.c b/gdk/macos/gdkmacosdisplay-translate.c
index 8a47cfc4a0..329f20b0dd 100644
--- a/gdk/macos/gdkmacosdisplay-translate.c
+++ b/gdk/macos/gdkmacosdisplay-translate.c
@@ -604,15 +604,8 @@ fill_scroll_event (GdkMacosDisplay *self,
double sx;
double sy;
- /*
- * TODO: We probably need another event type for the
- * high precision scroll events since sx and dy
- * are in a unit we don't quite support. For now,
- * to slow it down multiply by .1.
- */
-
- sx = [nsevent scrollingDeltaX] * .1;
- sy = [nsevent scrollingDeltaY] * .1;
+ sx = [nsevent scrollingDeltaX];
+ sy = [nsevent scrollingDeltaY];
if (sx != 0.0 || dx != 0.0)
ret = gdk_scroll_event_new (GDK_SURFACE (surface),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]