export function isMouseMoved ( downEvent , moveEvent , tolerance ) { const dx = downEvent . screenX - moveEvent . screenX ; const dy = downEvent . screenY - moveEvent . screenY ; return dx * dx + dy * dy > tolerance * tolerance ; }