eric7/WebBrowser/AutoScroll/AutoScroller.py

branch
eric7
changeset 8319
ea11a3948f40
parent 8318
962bce857696
child 8881
54e42bc2437a
--- a/eric7/WebBrowser/AutoScroll/AutoScroller.py	Sun May 16 20:07:24 2021 +0200
+++ b/eric7/WebBrowser/AutoScroll/AutoScroller.py	Mon May 17 19:58:15 2021 +0200
@@ -69,7 +69,7 @@
             rect = self.__indicatorGlobalRect()
             xlen = 0
             ylen = 0
-            egp = evt.globalPos()
+            egp = evt.globalPosition().toPoint()
             
             if rect.left() > egp.x():
                 xlen = egp.x() - rect.left()
@@ -125,7 +125,7 @@
         """
         if self.__enabled and self.__indicator.isVisible():
             if not self.__indicatorGlobalRect().contains(
-                    evt.globalPos()):
+                    evt.globalPosition().toPoint()):
                 self.__stopScrolling()
             return True
         

eric ide

mercurial