Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Commit 3f026c4

Browse files
committed
1 parent 7a3e219 commit 3f026c4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/libs/move.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ export function handleStartEventForMove(event) {
1515
function _handleEndEventForMove(event) {
1616
document.removeEventListener(moveEvent, _handleMoveEventForMove, false); // 拖拽结束,清除移动的事件回调
1717

18-
/* 恢复cursor */
19-
handler.style.cursor = 'auto';
20-
2118
event.preventDefault();
2219

2320
/* 撤销moving状态,但由于此状态值主要用于吞掉click事件,因此使用setTimeout延长moving状态至click事件结束 */
@@ -58,7 +55,6 @@ export function handleStartEventForMove(event) {
5855
}
5956
}
6057

61-
const handler = event.currentTarget; // event.currentTarget是绑定事件的element
6258
const window = this.window;
6359
const startPoint = getClientPosition(event); // 记录本次拖拽的起点位置
6460

@@ -83,8 +79,6 @@ export function handleStartEventForMove(event) {
8379
document.addEventListener(endEvent, _handleEndEventForMove);
8480

8581
const originPositionOffset = getPositionOffset(window); // 获取当前的位置偏移值
86-
/* 调整cursor */
87-
handler.style.cursor = 'all-scroll';
8882

8983
event.preventDefault();
9084
}

0 commit comments

Comments
 (0)