anchor.diff:        if (_onPageChange != null) {
           _onPageChange.add(index);
         }
  -      
  +
         // Ensure that the page transition end event is fired.
         if (speed > 0) {
           // At the end of the animation there will be a transitionEnd event.
  -        // Set the flag that the next transitionEnd event triggers a new 
  +        // Set the flag that the next transitionEnd event triggers a new
           // pageTransitionEnd event.
           _fireNextPageTransitionEnd = true;
  -        
  +
         } else {
  -        // As there was no animation, no transitionEndEvent will be fired by the 
  +        // As there was no animation, no transitionEndEvent will be fired by the
           // browser. So we need to manually call the fire method here.
           _firePageTransitionEndEvent();
         }
       }
  -    
  +
       // Set the new current index.
       _currentIndex = index;
     }
  -  
  -  /**
  -   * Moves to [index] with an animation. 
  -   * 
  +
  +  /**
  +   * Moves to [index] with an animation.
  +   *
      * [speed] defines the duration of the animation. [speed] must be > 0.
      */
     void _moveToIndexAnim(int index, int speed) {
       _addCssTransition(speed);
       _translatePercentX(index * -100);
     }
  -  
  +
     /**
      * Moves to [index] with no animation.
      */
     void _moveToIndexNoAnim(int index) {
       _translatePercentX(index * -100);
     }
  -  
  +
     /**
      * Moves the current page to the specified [offset].
      */
     void _moveToOffset(int offset) {
       _translatePixelX(_currentIndex * -_pageWidth + offset);
     }
  -   
  +
     /**
      * Moves to the next page.
      */
  
positive.code:   }
  
    /**
     * Updates the cached page width and the container sizes. 
     * 
     * The [resize] method is automatically called when the browser is resized. 
     * But if the [Swiper] is resized other than trough browser resizing, [resize] 
     * must be called manually.
     */
    void resize() {
      // Get the swiper's contentWidth. The contentWidth is a ROUNDEN pixel value.
      _pageWidth = _swiperElement.contentEdge.width.round();
      
      // We set the ROUNDED width to the container element. This is important, 
      // otherwise a floating point value might get passed down to the 
      // pages because they are 100%-width. A floating point width of the pages
      // would cause rounding errors.
      _containerElement.style.width = '${_pageWidth}px';
      
      if (_autoHeightRatio != null) {
        // Calculate the height with the provided aspect ratio.
        _containerElement.style.height = '${(_pageWidth * _autoHeightRatio).round()}px';
      }
    }
    
    /**
     * Unistalls all listeners. This will return the swiper element back to its 
     * pre-init state.
     */
    void destroy() {
  
negative.code:   int _addResistance(int offset) {
      bool firstPage = !hasPrev();
      bool lastPage = !hasNext();
  
      if ( (firstPage && offset > 0) || (lastPage && offset < 0) ) {
        // Add resistance.
        return offset ~/ (offset.abs() / _pageWidth + 1);
      } else {
        // No resistance.
        return offset;
      }
    }
  
    /**
     * Helper method to adjusts the [speed] proportionally to the [distance].
     * The [speed] corresponds to the distance of one page ([_swiperWidth]).
     */
    int _adjustSpeed(int speed, num distance) {
      if (distance > _pageWidth) {
        return speed;
      }
  
      return (speed / _pageWidth * distance).round();
    }
  
    /**
     * Sets the transform translate property to the [xPercent] value.
     */
    void _translatePercentX(int xPercent) {
      _containerElement.style.transform = 'translate3d(${xPercent}%, 0, 0)';
    }
  
    /**
     * Sets the transform translate property to the [xPixel] value.
     */
    void _translatePixelX(int xPixel) {
      // Unsing `translate3d` to activate GPU hardware-acceleration (a bit of a hack).
      _containerElement.style.transform = 'translate3d(${xPixel}px, 0, 0)';
    }
  
    /**
     * Adds the css transition style for the [_containerElement]. The transition is
     * for an ease-out animation with duration of [speed].
     */
    void _addCssTransition(int speed) {
  