mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
don't let horizontal scroll over limits
This commit is contained in:
parent
e27b45574c
commit
f8cc7100aa
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ DragHandler {
|
||||||
root.appDrawer.offset = -translation.y;
|
root.appDrawer.offset = -translation.y;
|
||||||
}
|
}
|
||||||
if (__scrollDirection !== DragGestureHandler.Vertical) {
|
if (__scrollDirection !== DragGestureHandler.Vertical) {
|
||||||
mainFlickable.contentX = Math.max(0, __initialMainFlickableX - translation.x);
|
mainFlickable.contentX = Math.min((mainFlickable.width * mainFlickable.totalPages) - mainFlickable.width, Math.max(0, __initialMainFlickableX - translation.x))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue