aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qquickflickable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/items/qquickflickable.cpp')
-rw-r--r--src/declarative/items/qquickflickable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/items/qquickflickable.cpp b/src/declarative/items/qquickflickable.cpp
index 0c24aa35b4..2f7b74453e 100644
--- a/src/declarative/items/qquickflickable.cpp
+++ b/src/declarative/items/qquickflickable.cpp
@@ -812,7 +812,7 @@ void QQuickFlickablePrivate::handleMousePressEvent(QMouseEvent *event)
hData.dragMaxBound = q->maxXExtent();
vData.dragMaxBound = q->maxYExtent();
fixupMode = Normal;
- lastPos = QPoint();
+ lastPos = QPointF();
QQuickItemPrivate::start(lastPosTime);
pressPos = event->localPos();
hData.pressPos = hData.move.value();
@@ -835,7 +835,7 @@ void QQuickFlickablePrivate::handleMouseMoveEvent(QMouseEvent *event)
bool stealX = stealMouse;
if (q->yflick()) {
- int dy = int(event->localPos().y() - pressPos.y());
+ qreal dy = event->localPos().y() - pressPos.y();
if (qAbs(dy) > qApp->styleHints()->startDragDistance() || QQuickItemPrivate::elapsed(pressTime) > 200) {
if (!vMoved)
vData.dragStartOffset = dy;
@@ -867,7 +867,7 @@ void QQuickFlickablePrivate::handleMouseMoveEvent(QMouseEvent *event)
}
if (q->xflick()) {
- int dx = int(event->localPos().x() - pressPos.x());
+ qreal dx = event->localPos().x() - pressPos.x();
if (qAbs(dx) > qApp->styleHints()->startDragDistance() || QQuickItemPrivate::elapsed(pressTime) > 200) {
if (!hMoved)
hData.dragStartOffset = dx;