diff options
-rw-r--r-- | README | 7 | ||||
-rw-r--r-- | browser.c | 6 |
2 files changed, 7 insertions, 6 deletions
@@ -165,12 +165,15 @@ Main windows Backward / forward (mouse keys 8 and 9) Does the obvious. - Mod1 + Wheel up or Ctrl + Wheel up + Mod1 + Scroll up or Ctrl + Scroll up Increase zoom level of the current page. - Mod1 + Wheel down or Ctrl + Wheel down + Mod1 + Scroll down or Ctrl + Scroll down Decrase zoom level of the current page. + Mod1 + Scroll horizontally or Ctrl + Scroll horizontally + Reset zoom to $LARIZA_ZOOM. + When the location bar is focused: @@ -714,10 +714,8 @@ key_web_view(GtkWidget *widget, GdkEvent *event, gpointer data) { gdk_event_get_scroll_deltas(event, &dx, &dy); z = webkit_web_view_get_zoom_level(WEBKIT_WEB_VIEW(c->web_view)); - if (dy == 1) - z += 0.1; - else if (dy == -1) - z -= 0.1; + z += -dy * 0.1; + z = dx != 0 ? global_zoom : z; webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(c->web_view), z); return TRUE; } |