From ed6124496468218859a162b3aa6d2507a45012c7 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 14 May 2014 17:28:47 +0200 Subject: [PATCH] Make sure scroll count is int --- qutebrowser/browser/curcommand.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/browser/curcommand.py b/qutebrowser/browser/curcommand.py index e5ccaf269..0d242334c 100644 --- a/qutebrowser/browser/curcommand.py +++ b/qutebrowser/browser/curcommand.py @@ -297,8 +297,8 @@ class CurCommandDispatcher(QObject): dy: How much to scroll in x-direction. count: multiplier """ - dx = int(count) * float(dx) - dy = int(count) * float(dy) + dx = int(int(count) * float(dx)) + dy = int(int(count) * float(dy)) self._tabs.currentWidget().page_.currentFrame().scroll(dx, dy) @cmdutils.register(instance='mainwindow.tabs.cur', name='scroll_perc_x',