mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
From b083afac2f0531bacd790cb3ac25353f9a02db5d Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
|
|
Date: Wed, 27 Jan 2016 16:20:35 +0000
|
|
Subject: Resolves: rhbz#1294208 trackpad two finger scroll goes into reverse
|
|
|
|
(cherry picked from commit e734c7f53cfffa6141e6b46c06825ee273e2136b)
|
|
|
|
Change-Id: Ic576f14cae82781a93e52972513a28c4a141d1a2
|
|
|
|
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
|
|
index af284ca..3914de5 100644
|
|
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
|
|
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
|
|
@@ -2557,14 +2557,12 @@ gboolean GtkSalFrame::signalScroll( GtkWidget*, GdkEvent* pEvent, gpointer frame
|
|
{
|
|
case GDK_SCROLL_SMOOTH:
|
|
{
|
|
- double delta_x, delta_y;
|
|
- gdk_event_get_scroll_deltas(pEvent, &delta_x, &delta_y);
|
|
//pick the bigger one I guess
|
|
- aEvent.mbHorz = fabs(delta_x) > fabs(delta_y);
|
|
+ aEvent.mbHorz = fabs(pSEvent->delta_x) > fabs(pSEvent->delta_y);
|
|
if (aEvent.mbHorz)
|
|
- aEvent.mnDelta = -delta_x;
|
|
+ aEvent.mnDelta = -pSEvent->delta_x * 40;
|
|
else
|
|
- aEvent.mnDelta = -delta_y;
|
|
+ aEvent.mnDelta = -pSEvent->delta_y * 40;
|
|
aEvent.mnScrollLines = 1;
|
|
pThis->m_nLastScrollEventTime = pSEvent->time;
|
|
break;
|
|
--
|
|
cgit v0.10.2
|
|
|