src/eric7/EricWidgets/EricMapWidget.py

branch
eric7
changeset 10689
3ede487187f2
parent 10456
12c30c88ed05
child 11090
f5f5f5803935
equal deleted inserted replaced
10688:0d9853ceb288 10689:3ede487187f2
245 """ 245 """
246 if event.button() == Qt.MouseButton.LeftButton and self._controller: 246 if event.button() == Qt.MouseButton.LeftButton and self._controller:
247 vsb = self._controller.verticalScrollBar() 247 vsb = self._controller.verticalScrollBar()
248 value = self.position2Value(event.position().toPoint().y() - 1) 248 value = self.position2Value(event.position().toPoint().y() - 1)
249 vsb.setValue(int(value - 0.5 * vsb.pageStep())) # center on page 249 vsb.setValue(int(value - 0.5 * vsb.pageStep())) # center on page
250 self.__mousePressPos = None
251 250
252 def mouseMoveEvent(self, event): 251 def mouseMoveEvent(self, event):
253 """ 252 """
254 Protected method to handle a mouse moves. 253 Protected method to handle a mouse moves.
255 254

eric ide

mercurial