From f0b3091a18241313d70c3219ae5fa38e91f062b0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Oct 2019 18:50:45 +0530 Subject: [PATCH] =?UTF-8?q?Viewer:=20Fix=20loading=20progress=20screen=20s?= =?UTF-8?q?ometimes=20getting=20stuck=20if=20changing=20pages=20rapidly=20?= =?UTF-8?q?with=20mouse=20wheel.=20Fixes=20#1846751=20[New=20Viewer=20App?= =?UTF-8?q?=20gets=20stuck=20at=20"Loading=20next=20section=20from=20?= =?UTF-8?q?=E2=80=A6=20please=20wait=E2=80=A6"=20when=20scrolling](https:/?= =?UTF-8?q?/bugs.launchpad.net/calibre/+bug/1846751)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pyj/read_book/view.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 219b630a6c..f7dd9d8e65 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -482,6 +482,8 @@ class View: def show_loading(self): msg = _('Loading next section from {title}, please wait…').format(title=self.book.metadata.title) + if self.show_loading_callback_timer is not None: + clearTimeout(self.show_loading_callback_timer) self.show_loading_callback_timer = setTimeout(self.show_loading_message.bind(None, msg), 200) def hide_loading(self):