Skip to content

Commit bc83d44

Browse files
committed
Fix typos
1 parent dc99780 commit bc83d44

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/dragelement/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,19 @@ dragElement.init = function init(options) {
145145

146146
function onDone(e) {
147147
if(hasHover) {
148-
document.removeEventListener('mousemove', onMove);
149-
document.removeEventListener('mouseup', onDone);
150-
document.removeEventListener('mouseout', onDone);
148+
dragCover.removeEventListener('mousemove', onMove);
149+
dragCover.removeEventListener('mouseup', onDone);
150+
dragCover.removeEventListener('mouseout', onDone);
151151

152152
Lib.removeElement(dragCover);
153153
}
154154

155155
else {
156-
document.removeEventListener('touchmove', onMove);
157-
document.removeEventListener('touchend', onDone);
156+
dragCover.removeEventListener('touchmove', onMove);
157+
dragCover.removeEventListener('touchend', onDone);
158158

159159
if(cursor) {
160-
document.documentElement.style.cursor = cursor;
160+
dragCover.documentElement.style.cursor = cursor;
161161
cursor = null;
162162
}
163163
}

0 commit comments

Comments
 (0)