diff options
author | nyamatongwe <devnull@localhost> | 2012-04-29 14:50:13 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-04-29 14:50:13 +1000 |
commit | 55fb74c1c5a379a723e344b19f5045274a0710e8 (patch) | |
tree | 8414046ed1ab3b036d1b2c83c344ba6066f827aa | |
parent | 47f9fbb7106a4cb6a5f275c04043dc83a105afaf (diff) | |
download | scintilla-mirror-55fb74c1c5a379a723e344b19f5045274a0710e8.tar.gz |
Ignore smooth scrolling events.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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); |