dist/glide.esm.js
function end(event) {
      if (!Glide.disabled) {
        var settings = Glide.settings;

        var swipe = this.touches(event);
        var threshold = this.threshold(event);

        var swipeDistance = swipe.pageX - swipeStartX;
        var swipeDeg = swipeSin * 180 / Math.PI;
        var steps = Math.round(swipeDistance / Components.Sizes.slideWidth);

        this.enable();

        if (swipeDistance > threshold && swipeDeg < settings.touchAngle) {
          // While swipe is positive and greater than threshold move backward.
          if (settings.perTouch) {
            steps = Math.min(steps, toInt(settings.perTouch));
          }

          if (Components.Direction.is('rtl')) {
            steps = -steps;
          }

          Components.Run.make(Components.Direction.resolve('<' + steps));
        } else if (swipeDistance < -threshold && swipeDeg < settings.touchAngle) {
          // While swipe is negative and lower than negative threshold move forward.
          if (settings.perTouch) {
            steps = Math.max(steps, -toInt(settings.perTouch));
          }

          if (Components.Direction.is('rtl')) {
            steps = -steps;
          }

          Components.Run.make(Components.Direction.resolve('>' + steps));
        } else {
          // While swipe don't reach distance apply previous transform.
          Components.Move.make();
        }

        Components.Html.root.classList.remove(settings.classes.dragging);

        this.unbindSwipeMove();
        this.unbindSwipeEnd();

        Events.emit('swipe.end');
      }
    }
function end(event) {
      if (!Glide.disabled) {
        var settings = Glide.settings;

        var swipe = this.touches(event);
        var threshold = this.threshold(event);

        var swipeDistance = swipe.pageX - swipeStartX;
        var swipeDeg = swipeSin * 180 / Math.PI;
        var steps = Math.round(swipeDistance / Components.Sizes.slideWidth);

        this.enable();

        if (swipeDistance > threshold && swipeDeg < settings.touchAngle) {
          // While swipe is positive and greater than threshold move backward.
          if (settings.perTouch) {
            steps = Math.min(steps, toInt(settings.perTouch));
          }

          if (Components.Direction.is('rtl')) {
            steps = -steps;
          }

          Components.Run.make(Components.Direction.resolve('<' + steps));
        } else if (swipeDistance < -threshold && swipeDeg < settings.touchAngle) {
          // While swipe is negative and lower than negative threshold move forward.
          if (settings.perTouch) {
            steps = Math.max(steps, -toInt(settings.perTouch));
          }

          if (Components.Direction.is('rtl')) {
            steps = -steps;
          }

          Components.Run.make(Components.Direction.resolve('>' + steps));
        } else {
          // While swipe don't reach distance apply previous transform.
          Components.Move.make();
        }

        Components.Html.root.classList.remove(settings.classes.dragging);

        this.unbindSwipeMove();
        this.unbindSwipeEnd();

        Events.emit('swipe.end');
      }
    }
function end ( event ) { if ( ! Glide . disabled ) { var settings = Glide . settings ; var swipe = this . touches ( event ) ; var threshold = this . threshold ( event ) ; var swipeDistance = swipe . pageX - swipeStartX ; var swipeDeg = swipeSin * 180 / Math . PI ; var steps = Math . round ( swipeDistance / Components . Sizes . slideWidth ) ; this . enable ( ) ; if ( swipeDistance > threshold && swipeDeg < settings . touchAngle ) { // While swipe is positive and greater than threshold move backward. if ( settings . perTouch ) { steps = Math . min ( steps , toInt ( settings . perTouch ) ) ; } if ( Components . Direction . is ( 'rtl' ) ) { steps = - steps ; } Components . Run . make ( Components . Direction . resolve ( '<' + steps ) ) ; } else if ( swipeDistance < - threshold && swipeDeg < settings . touchAngle ) { // While swipe is negative and lower than negative threshold move forward. if ( settings . perTouch ) { steps = Math . max ( steps , - toInt ( settings . perTouch ) ) ; } if ( Components . Direction . is ( 'rtl' ) ) { steps = - steps ; } Components . Run . make ( Components . Direction . resolve ( '>' + steps ) ) ; } else { // While swipe don't reach distance apply previous transform. Components . Move . make ( ) ; } Components . Html . root . classList . remove ( settings . classes . dragging ) ; this . unbindSwipeMove ( ) ; this . unbindSwipeEnd ( ) ; Events . emit ( 'swipe.end' ) ; } }
Handler for `swipeend` event. Finitializes user's tap and decides about glide move.

@param {Object} event
@return {Void}
Handler for swipeend event . Finitializes user s tap and decides about glide move .