aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authorEnrico Tröger <unknown>2023-01-17 19:03:05 +1100
committerEnrico Tröger <unknown>2023-01-17 19:03:05 +1100
commit6039080cfba2b9344fa9cde2ba5688d2db590d66 (patch)
tree65c3617372f31a41776a3297940b746ddec3aa78 /gtk
parentbc9ee2dd45e7654c5c1d6c2b4b3791df20962a95 (diff)
downloadscintilla-mirror-6039080cfba2b9344fa9cde2ba5688d2db590d66.tar.gz
Bug [#2375]. On Win32, fix scrolling speed to not be too fast.
Diffstat (limited to 'gtk')
-rwxr-xr-xgtk/ScintillaGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index ec6f83058..168416bb7 100755
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -2000,7 +2000,7 @@ gint ScintillaGTK::ScrollEvent(GtkWidget *widget, GdkEventScroll *event) {
// where the X11 server already has an adaptive scrolling algorithm
// that fights with this one
int cLineScroll;
-#if defined(__APPLE__) && !defined(GDK_WINDOWING_QUARTZ)
+#if (defined(__APPLE__) || defined(PLAT_GTK_WIN32)) && !defined(GDK_WINDOWING_QUARTZ)
cLineScroll = sciThis->linesPerScroll;
if (cLineScroll == 0)
cLineScroll = 4;