eric7/WebBrowser/AutoScroll/AutoScroller.py

branch
eric7
changeset 8319
ea11a3948f40
parent 8318
962bce857696
child 8881
54e42bc2437a
equal deleted inserted replaced
8318:962bce857696 8319:ea11a3948f40
67 """ 67 """
68 if self.__enabled and self.__indicator.isVisible(): 68 if self.__enabled and self.__indicator.isVisible():
69 rect = self.__indicatorGlobalRect() 69 rect = self.__indicatorGlobalRect()
70 xlen = 0 70 xlen = 0
71 ylen = 0 71 ylen = 0
72 egp = evt.globalPos() 72 egp = evt.globalPosition().toPoint()
73 73
74 if rect.left() > egp.x(): 74 if rect.left() > egp.x():
75 xlen = egp.x() - rect.left() 75 xlen = egp.x() - rect.left()
76 elif rect.right() < egp.x(): 76 elif rect.right() < egp.x():
77 xlen = egp.x() - rect.right() 77 xlen = egp.x() - rect.right()
123 @return flag indicating, that the event was handled 123 @return flag indicating, that the event was handled
124 @rtype bool 124 @rtype bool
125 """ 125 """
126 if self.__enabled and self.__indicator.isVisible(): 126 if self.__enabled and self.__indicator.isVisible():
127 if not self.__indicatorGlobalRect().contains( 127 if not self.__indicatorGlobalRect().contains(
128 evt.globalPos()): 128 evt.globalPosition().toPoint()):
129 self.__stopScrolling() 129 self.__stopScrolling()
130 return True 130 return True
131 131
132 return False 132 return False
133 133

eric ide

mercurial