Mercurial > vim
diff src/gui_gtk_x11.c @ 2409:0ca06a92adfb vim73
Add support for horizontal scroll wheel. (Bjorn Winckler)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 25 Jul 2010 15:49:07 +0200 |
parents | ccda151dde4e |
children | 2070b63605a7 |
line wrap: on
line diff
--- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -1700,7 +1700,13 @@ scroll_event(GtkWidget *widget, case GDK_SCROLL_DOWN: button = MOUSE_5; break; - default: /* We don't care about left and right... Yet. */ + case GDK_SCROLL_LEFT: + button = MOUSE_7; + break; + case GDK_SCROLL_RIGHT: + button = MOUSE_6; + break; + default: /* This shouldn't happen */ return FALSE; }