def onMouseMove(self, sender, x, y):
        # if dragging, then use current mouse position
        # to reset splitter position
        if not self._isDragging():
            return
        # remove the offset into the splitter
        # where we started dragging
        if self._vertical:
            self._pos = y - self._drag_start
        else:
            self._pos = self._drag_start - x
        # apply limit
        if self._pos < 1:
            self._pos = 1
        # apply new position
        self.setSplitPosition()
dataset/ETHPy150Open anandology/pyjamas/library/gwt/ui/SplitPanel.py/SplitPanel.onMouseMove/swapped operands of `-`