From 2779b2f42e8fd04182e90da5058350b0ad985d40 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 17 Feb 2014 22:24:17 +0100 Subject: [PATCH] Fix cur_scroll_page regression. --- qutebrowser/widgets/browser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qutebrowser/widgets/browser.py b/qutebrowser/widgets/browser.py index fb92c318b..fc9e07256 100644 --- a/qutebrowser/widgets/browser.py +++ b/qutebrowser/widgets/browser.py @@ -288,10 +288,10 @@ class TabbedBrowser(TabWidget): def cur_scroll_page(self, mx, my, count=1): """Scroll the frame mx pages to the right and my pages down.""" # FIXME this might not work with HTML frames - size = self.page_.viewportSize() - self.currentWidget().page_.mainFrame().scroll( - int(count) * float(mx) * size.width(), - int(count) * float(my) * size.height()) + page = self.currentWidget().page_ + size = page.viewportSize() + page.mainFrame().scroll(int(count) * float(mx) * size.width(), + int(count) * float(my) * size.height()) def switch_prev(self, count=1): """Switch to the ([count]th) previous tab.