Don't allow overscrolling views by clicking scrollbar arrows
REVIEW: 105268
This commit is contained in:
parent
7ec06767e2
commit
62ddf21fb6
@ -132,10 +132,10 @@ Item {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (internalLoader.isVertical) {
|
if (internalLoader.isVertical) {
|
||||||
flickableItem.contentY = Math.max(0, Math.min(flickableItem.contentHeight,
|
flickableItem.contentY = Math.max(0, Math.min(flickableItem.contentHeight - flickableItem.height,
|
||||||
flickableItem.contentY + increment))
|
flickableItem.contentY + increment))
|
||||||
} else {
|
} else {
|
||||||
flickableItem.contentX = Math.max(0, Math.min(flickableItem.contentWidth,
|
flickableItem.contentX = Math.max(0, Math.min(flickableItem.contentWidth - flickableItem.width,
|
||||||
flickableItem.contentX + increment))
|
flickableItem.contentX + increment))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user