ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Scrolling downwards on slide-box makes it slide to the first item

Open ncammarata opened this issue 12 years ago • 5 comments

This video documents the issue.

https://cloudup.com/iw55HyFDC4I

ncammarata avatar Dec 05 '13 23:12 ncammarata

Confirmed also on this page: https://github.com/driftyco/ionic/blob/master/test/slideBox.html

lwu avatar Dec 06 '13 05:12 lwu

Poking at the code, I wonder what this code means: slideBoxView.js#L300

        // We really aren't dragging
        if(!_this._drag) {
          _this._startDrag(e);
        }

        // Sanity
        if(!_this._drag) { return; }

lwu avatar Dec 06 '13 05:12 lwu

Submitted a patch via pull request which seems to fix the issue on slideBox.html test case (swipe to last cow, swipe up/down previously jumped to slide 0 because e.gesture.velocityX was below threshold, causing zero movement edge case).

See https://github.com/driftyco/ionic/pull/274/files

lwu avatar Dec 06 '13 10:12 lwu

Closing as the new scroll based version will fix this along with other benefits: #328

mlynch avatar Dec 15 '13 18:12 mlynch

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 06 '18 02:09 ionitron-bot[bot]