dist/glide.esm.js
function Focusing (Glide, Components) {
  return {
    /**
     * Modifies passed translate value with index in the `focusAt` setting.
     *
     * @param  {Number} translate
     * @return {Number}
     */
    modify: function modify(translate) {
      var gap = Components.Gaps.value;
      var width = Components.Sizes.width;
      var focusAt = Glide.settings.focusAt;
      var slideWidth = Components.Sizes.slideWidth;

      if (focusAt === 'center') {
        return translate - (width / 2 - slideWidth / 2);
      }

      return translate - slideWidth * focusAt - gap * focusAt;
    }
  };
}
function Focusing (Glide, Components) {
  return {
    /**
     * Modifies passed translate value with index in the `focusAt` setting.
     *
     * @param  {Number} translate
     * @return {Number}
     */
    modify: function modify(translate) {
      var gap = Components.Gaps.value;
      var width = Components.Sizes.width;
      var focusAt = Glide.settings.focusAt;
      var slideWidth = Components.Sizes.slideWidth;

      if (focusAt === 'center') {
        return translate - (width / 2 - slideWidth / 2);
      }

      return translate - slideWidth * focusAt - gap * focusAt;
    }
  };
}
function Focusing ( Glide , Components ) { return { /**
     * Modifies passed translate value with index in the `focusAt` setting.
     *
     * @param  {Number} translate
     * @return {Number}
     */ modify : function modify ( translate ) { var gap = Components . Gaps . value ; var width = Components . Sizes . width ; var focusAt = Glide . settings . focusAt ; var slideWidth = Components . Sizes . slideWidth ; if ( focusAt === 'center' ) { return translate - ( width / 2 - slideWidth / 2 ) ; } return translate - slideWidth * focusAt - gap * focusAt ; } } ; }
Updates glide movement with a `focusAt` settings.

@param  {Object} Glide
@param  {Object} Components
@return {Object}
Updates glide movement with a focusAt settings .