fix error dragging outside of window in FF, close #2610