Fix dragging offset scrolling bug