We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 93a9e44 + 5b7a25c commit d609088Copy full SHA for d609088
gns3/graphics_view.py
@@ -636,8 +636,8 @@ def mouseMoveEvent(self, event):
636
hBar = self.horizontalScrollBar()
637
vBar = self.verticalScrollBar()
638
delta = mapped_global_pos - self._last_mouse_position
639
- hBar.setValue(hBar.value() + (delta.x() if QtWidgets.QApplication.isRightToLeft() else -delta.x()))
640
- vBar.setValue(vBar.value() - delta.y())
+ hBar.setValue(int(hBar.value() + (delta.x() if QtWidgets.QApplication.isRightToLeft() else - delta.x())))
+ vBar.setValue(int(vBar.value() - delta.y()))
641
self._last_mouse_position = mapped_global_pos
642
if self._adding_link and self._newlink and self._newlink in self.scene().items():
643
# update the mouse position when the user is adding a link.
0 commit comments