Skip to content

Commit

Permalink
fix(swiper): allow for multiple swipers on a page (#12213)
Browse files Browse the repository at this point in the history
fixes #12008
  • Loading branch information
Jérémy LE TRIONNAIRE authored and kensodemann committed Oct 20, 2017
1 parent 6b848a0 commit dd66f9a
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 @@ -87,12 +87,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 dd66f9a

Please sign in to comment.