diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2012-10-08 01:19:54 +0800 |
---|---|---|
committer | Giovanni Campagna <gcampagna@src.gnome.org> | 2013-01-12 01:46:36 +0800 |
commit | 2c9fc0f3af7a51f1fead38c65706604022663b5f (patch) | |
tree | 98ea800e66c06d9b4f580f31eb8dc982be5c3aef /src | |
parent | a5ae9c3e3ade32d7dafbb4ec841eb9197b911e0d (diff) | |
download | gsoc2013-epiphany-2c9fc0f3af7a51f1fead38c65706604022663b5f.tar gsoc2013-epiphany-2c9fc0f3af7a51f1fead38c65706604022663b5f.tar.gz gsoc2013-epiphany-2c9fc0f3af7a51f1fead38c65706604022663b5f.tar.bz2 gsoc2013-epiphany-2c9fc0f3af7a51f1fead38c65706604022663b5f.tar.lz gsoc2013-epiphany-2c9fc0f3af7a51f1fead38c65706604022663b5f.tar.xz gsoc2013-epiphany-2c9fc0f3af7a51f1fead38c65706604022663b5f.tar.zst gsoc2013-epiphany-2c9fc0f3af7a51f1fead38c65706604022663b5f.zip |
EphyWindow: don't connect to scroll-event on the web view
Doing so prevents the correct delivery of scroll DOM events,
and at time causes the wrong part of the page to scroll (or
none at all).
https://bugzilla.gnome.org/show_bug.cgi?id=684243
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-window.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 1282bc1d3..4fd14a9f7 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -858,24 +858,6 @@ ephy_window_unfullscreen (EphyWindow *window) } static gboolean -scroll_event_cb (GtkWidget *widget, - GdkEventScroll *event, - EphyWindow *window) -{ - guint modifier = event->state & gtk_accelerator_get_default_mod_mask (); - - if (modifier != GDK_CONTROL_MASK) - return FALSE; - - if (event->direction == GDK_SCROLL_UP) - ephy_window_set_zoom (window, ZOOM_IN); - else if (event->direction == GDK_SCROLL_DOWN) - ephy_window_set_zoom (window, ZOOM_OUT); - - return TRUE; -} - -static gboolean ephy_window_key_press_event (GtkWidget *widget, GdkEventKey *event) { @@ -2818,15 +2800,7 @@ ephy_window_connect_active_embed (EphyWindow *window) g_signal_connect_object (web_view, "notify::zoom-level", G_CALLBACK (sync_tab_zoom), window, 0); - /* FIXME: we should set our own handler for - scroll-event, but right now it's pointless because - GtkScrolledWindow will eat all the events, even - those with modifier keys we want to catch to zoom - in and out. See bug #562630 - */ - g_signal_connect_object (web_view, "scroll-event", - G_CALLBACK (scroll_event_cb), - window, 0); + #ifdef HAVE_WEBKIT2 g_signal_connect_object (web_view, "create", G_CALLBACK (create_web_view_cb), @@ -2934,9 +2908,6 @@ ephy_window_disconnect_active_embed (EphyWindow *window) G_CALLBACK (sync_tab_zoom), window); g_signal_handlers_disconnect_by_func (web_view, - G_CALLBACK (scroll_event_cb), - window); - g_signal_handlers_disconnect_by_func (web_view, G_CALLBACK (create_web_view_cb), window); #ifdef HAVE_WEBKIT2 |