Skip to content

Commit

Permalink
Update swiper-events.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmlt authored Jun 30, 2017
1 parent 48b3243 commit cfafd8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/slides/swiper/swiper-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ export function initEvents(s: Slides, plt: Platform): Function {
}, { zone: false }, unregs);

// mousemove
plt.registerListener(plt.doc(), 'mousemove', (ev: SlideUIEvent) => {
plt.registerListener(touchEventsTarget, 'mousemove', (ev: SlideUIEvent) => {
onTouchMove(s, plt, ev);
}, { zone: false }, unregs);

// mouseup
plt.registerListener(plt.doc(), 'mouseup', (ev: SlideUIEvent) => {
plt.registerListener(touchEventsTarget, 'mouseup', (ev: SlideUIEvent) => {
onTouchEnd(s, plt, ev);
}, { zone: false }, unregs);
}
Expand Down

0 comments on commit cfafd8e

Please sign in to comment.