eric6/WebBrowser/AutoScroll/AutoScroller.py

changeset 8228
772103b14c18
parent 8218
7c09585bd960
--- a/eric6/WebBrowser/AutoScroll/AutoScroller.py	Mon Apr 12 19:05:23 2021 +0200
+++ b/eric6/WebBrowser/AutoScroll/AutoScroller.py	Mon Apr 12 19:21:40 2021 +0200
@@ -101,9 +101,10 @@
             
             if view:
                 # test for start
-                if self.__view != view and middleButton:
-                    return self.__showIndicator(view, evt.pos())
-                elif not self.__indicator.isVisible() and middleButton:
+                if (
+                    middleButton and
+                    (self.__view != view or not self.__indicator.isVisible())
+                ):
                     return self.__showIndicator(view, evt.pos())
                 
                 # test for stop

eric ide

mercurial