on xenial help sign in
Allow drag over bounds, but not overshoot. Fixes: https://bugs.launchpad.net/bugs/1204300.
00ef0e6Andrea Cimitan
Components/Carousel.qml+1−1
@@ -136,7 +136,7 @@ Item {
136 height: listView.tileHeight
136 height: listView.tileHeight
137 }
137 }
138
138
139− boundsBehavior: Flickable.StopAtBounds
139+ boundsBehavior: Flickable.DragOverBounds
140 cacheBuffer: carousel.cacheBuffer
140 cacheBuffer: carousel.cacheBuffer
141 flickDeceleration: Math.max(1500 * Math.pow(realWidth / referenceWidth, 1.5), 1500) // 1500 is platform default
141 flickDeceleration: Math.max(1500 * Math.pow(realWidth / referenceWidth, 1.5), 1500) // 1500 is platform default
142 maximumFlickVelocity: Math.max(2500 * Math.pow(realWidth / referenceWidth, 1.5), 2500) // 2500 is platform default
142 maximumFlickVelocity: Math.max(2500 * Math.pow(realWidth / referenceWidth, 1.5), 2500) // 2500 is platform default