Home > front end >  Swiper sliding ban trigger other events
Swiper sliding ban trigger other events

Time:09-21

Swiper sliding when how to prohibit draggable drag events, cloning of swiper touchStartForcePreventDefault and touchMoveStopPropagation have tried, can't ban draggable drag cloning

CodePudding user response:

e.preventDefault()

CodePudding user response:

reference 1st floor jio can reply:
e.p reventDefault ()

This way, please write, write? Understanding swiper is not special, small white a
Var myswiper=new Swiper (' Swiper - container - wen ', {
SlidesPerView: 'auto',
FreeMode: true,
Direction: 'vertical',
SetWrapperSize: true,
NoSwiping: true,
Scrollbar: {
El: 'swiper - scrollbar',
},
The observer: true,
ObserveParents: true,
});

CodePudding user response:

Write in sliding event

CodePudding user response:

reference jio can reply: 3/f
written in sliding event

Is this event? Seems didn't work
On: {
Touchmove: function (event) {
//your event
event.preventDefault();
//e.s topPropagation ();
},
},
  • Related