Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_setupSwipeHahdlers() {
this.swiper = new VanillaSwipe({
element: this.swipeWrapper,
onSwiping: this._throttledOnTouchMove,
onSwiped: this._onTouchEnd,
rotationAngle: 10,
mouseTrackingEnabled: this.props.mouseTrackingEnabled,
touchTrackingEnabled: this.props.touchTrackingEnabled,
preventDefaultTouchmoveEvent: this.props.preventEventOnTouchMove,
})
this.swiper.init()
}