summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index af284ca8c3aa..3914de59148f 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;