[geany/geany] b778e4: Merge pull request #1843 from b4n/smooth-scroll-bug
Colomban Wendling
git-noreply at xxxxx
Sat May 26 16:17:11 UTC 2018
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sat, 26 May 2018 16:17:11 UTC
Commit: b778e4b56f7cda19da0f9970d8e9f584e19a4732
https://github.com/geany/geany/commit/b778e4b56f7cda19da0f9970d8e9f584e19a4732
Log Message:
-----------
Merge pull request #1843 from b4n/smooth-scroll-bug
Fix horizontal and page scroll on GTK3
Modified Paths:
--------------
src/editor.c
Modified: src/editor.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -4748,6 +4748,10 @@ on_editor_scroll_event(GtkWidget *widget, GdkEventScroll *event, gpointer user_d
{
GeanyEditor *editor = user_data;
+ /* we only handle up and down, leave the rest to Scintilla */
+ if (event->direction != GDK_SCROLL_UP && event->direction != GDK_SCROLL_DOWN)
+ return FALSE;
+
/* Handle scroll events if Alt is pressed and scroll whole pages instead of a
* few lines only, maybe this could/should be done in Scintilla directly */
if (event->state & GDK_MOD1_MASK)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list