How to use vanilla-swipe - 1 common examples

To help you get started, we’ve selected a few vanilla-swipe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github maxmarinich / react-alice-carousel / src / lib / react-alice-carousel.js View on Github external
_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()
  }

vanilla-swipe

Tiny vanilla JS library to detect swipe direction.

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis

Popular vanilla-swipe functions