Fix for dragging offscreen