diff options
author | nyamatongwe <unknown> | 2012-04-29 14:50:13 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-04-29 14:50:13 +1000 |
commit | daed3cc39d9585ca3021baf768fc8a27a423fbb9 (patch) | |
tree | 25b3d6fcced7392707bf050f4aad22afed61cc86 | |
parent | 8d69215a790925cbadd66aef402cb150e32ff058 (diff) | |
download | scintilla-mirror-daed3cc39d9585ca3021baf768fc8a27a423fbb9.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); |