From da8b6fb50a2d02ac9e34cfada448d17f5d93171d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 19 Mar 2018 14:11:01 +0100 Subject: [PATCH] Decrease maximum repetitions for QtWebEngine scrolling At least for Qt debug builds, 5000 seems to be much too much. See #3661 --- qutebrowser/browser/webengine/webenginetab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index 6f4deebae..f9308163d 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -379,7 +379,7 @@ class WebEngineScroller(browsertab.AbstractScroller): def _repeated_key_press(self, key, count=1, modifier=Qt.NoModifier): """Send count fake key presses to this scroller's WebEngineTab.""" - for _ in range(min(count, 5000)): + for _ in range(min(count, 1000)): self._tab.key_press(key, modifier) @pyqtSlot(QPointF)