From daed3cc39d9585ca3021baf768fc8a27a423fbb9 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 29 Apr 2012 14:50:13 +1000 Subject: Ignore smooth scrolling events. --- gtk/ScintillaGTK.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 178c591d8..dea716c82 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1967,6 +1967,13 @@ gint ScintillaGTK::ScrollEvent(GtkWidget *widget, return FALSE; } +#if GTK_CHECK_VERSION(3,4,0) + // Smooth scrolling not supported + if (event->direction == GDK_SCROLL_SMOOTH) { + return FALSE; + } +#endif + // Horizontal scrolling if (event->direction == GDK_SCROLL_LEFT || event->direction == GDK_SCROLL_RIGHT) { sciThis->HorizontalScrollTo(sciThis->xOffset + cLineScroll); -- cgit v1.2.3