文章指出,传统在 document 上监听 mousedown 和 mousemove 实现拖拽的方式已过时,推荐改用 pointerdown、pointermove、pointerup 等 Pointer 事件,并将事件直接绑定在触发元素上。为解决快速拖动时指针移出元素导致事件丢失的问题,可用 setPointerCapture 捕获 pointerId,使后续事件持续以该元素为目标,释放时调用 releasePointerCapture。文中还介绍了 pointer-events、touch-action 及已废弃的 setCapture 等相关知识。
完成下面两步后,将自动完成登录并继续当前操作。