Skip to content

Commit 1b1ff93

Browse files
Events cleanup
1 parent d4a16b3 commit 1b1ff93

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/glide.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -981,10 +981,10 @@ var Run = function (Glide, Core) {
981981

982982
if (Glide.options.touchDistance) {
983983

984-
Glide.slider.on({
984+
Glide.wrapper.on({
985985
'touchstart.glide mousedown.glide': Core.Events.throttle(this.start, Glide.options.throttle),
986986
'touchmove.glide mousemove.glide': Core.Events.throttle(this.move, Glide.options.throttle),
987-
'touchend.glide mouseup.glide mouseleave': Core.Events.throttle(this.end, Glide.options.throttle)
987+
'touchend.glide mouseup.glide': Core.Events.throttle(this.end, Glide.options.throttle)
988988
});
989989

990990
}

0 commit comments

Comments
 (0)