diff options
-rw-r--r-- | embed/webkit/webkit-embed.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index f5d622fee..9638d5c8f 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -475,11 +475,8 @@ impl_scroll_pixels (EphyEmbed *embed, hadj = gtk_scrolled_window_get_hadjustment (wembed->priv->scrolled_window); vadj = gtk_scrolled_window_get_vadjustment (wembed->priv->scrolled_window); - hadj->value += dx; - vadj->value += dy; - - gtk_adjustment_value_changed (hadj); - gtk_adjustment_value_changed (vadj); + gtk_adjustment_set_value (hadj, CLAMP (hadj->value + dx, hadj->lower, hadj->upper - hadj->page_size)); + gtk_adjustment_set_value (vadj, CLAMP (vadj->value + dy, vadj->lower, vadj->upper - vadj->page_size)); } static void |