new_x = scroll_position['x'] + self.drag_position['x'] - pos.x()