Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

Incorrect amount of scrolling of Carousel

  • Hello,
    I noticed that the amount of scrolling is incorrect with Carousel scaled by transform.
    In the sample below, correct scrolling amount of 750px is required. However, only 563px has been scrolled.

    <div style="transform: scale(0.75)">
    <ons-carousel style="width: 750px; height:100px;" swipeable overscrollable auto-scroll>
      <ons-carousel-item style="background-color: red;">
      <ons-carousel-item style="background-color: green;">
      <ons-carousel-item style="background-color: red;">

  • Finally, I modified like below in HorizontalModeTrait. :smile:

         _getElementSize: function _getElementSize() {
           if (!this._currentElementSize) {
    //       this._currentElementSize = this.getBoundingClientRect().width;
             this._currentElementSize = this.clientWidth;
           return this._currentElementSize;