@@ -17,7 +17,6 @@
17import QtQuick 2.0
17import QtQuick 2.0
18import Ubuntu.Components 0.1
18import Ubuntu.Components 0.1
19import "carousel.js" as CarouselJS
19import "carousel.js" as CarouselJS
20−import "Flickables" as Flickables
22/*! The Carousel component presents the items of a model in a carousel view. It's similar to a
21/*! The Carousel component presents the items of a model in a carousel view. It's similar to a
23 cover flow. But it stops at it's boundaries (therefore no PathView is used).
22 cover flow. But it stops at it's boundaries (therefore no PathView is used).
@@ -64,7 +63,7 @@ Item {
64 and footer item to compensate that.
63 and footer item to compensate that.
66 The scaling of the items is controlled by the variable continuousIndex, described below. */
65 The scaling of the items is controlled by the variable continuousIndex, described below. */
67− Flickables.ListView {
66+ ListView {
68 id: listView
67 id: listView
69 objectName: "listView"
68 objectName: "listView"
@@ -136,6 +135,8 @@ Item {
137 boundsBehavior: Flickable.DragOverBounds
136 boundsBehavior: Flickable.DragOverBounds
138 cacheBuffer: carousel.cacheBuffer
137 cacheBuffer: carousel.cacheBuffer
138+ flickDeceleration: Math.max(1500 * Math.pow(realWidth / referenceWidth, 1.5), 1500) // 1500 is platform default
139+ maximumFlickVelocity: Math.max(2500 * Math.pow(realWidth / referenceWidth, 1.5), 2500) // 2500 is platform default
139 orientation: ListView.Horizontal
140 orientation: ListView.Horizontal
141 function getXFromContinuousIndex(index) {
142 function getXFromContinuousIndex(index) {