Forward-port fix from master

Don't ever change the view position value from the scrollbar if it's
in non-interactive mode
This commit is contained in:
Aleix Pol 2012-10-09 16:21:21 +02:00
parent c42d979a56
commit fa82e27049

View File

@ -218,7 +218,10 @@ Item {
id: updateFromHandleTimer id: updateFromHandleTimer
interval: 10 interval: 10
onTriggered: { onTriggered: {
if (internalLoader.isVertical && enabled && interactive) { if(!enabled || !interactive)
return;
if (internalLoader.isVertical) {
range.position = internalLoader.item.handle.y range.position = internalLoader.item.handle.y
} else { } else {
range.position = internalLoader.item.handle.x range.position = internalLoader.item.handle.x