make PageRow work
enum names aren't anymre available in js files fix scrollToLevel behavior
This commit is contained in:
parent
881246e239
commit
7cafe26fa0
@ -215,8 +215,8 @@ function pop(page, immediate) {
|
||||
|
||||
// Checks if the orientation changes between oldPage and newPage
|
||||
function orientationChanges(oldPage, newPage) {
|
||||
return newPage.orientationLock != PlasmaComponents.PageOrientation.Automatic
|
||||
&& newPage.orientationLock != PlasmaComponents.PageOrientation.LockPrevious
|
||||
return newPage.orientationLock != 0 //PlasmaComponents.PageOrientation.Automatic
|
||||
&& newPage.orientationLock != 3//PlasmaComponents.PageOrientation.LockPrevious
|
||||
&& newPage.orientationLock != oldPage.orientationLock
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,7 @@ Item {
|
||||
return
|
||||
}
|
||||
|
||||
scrollAnimation.to = Math.max(0, Math.min(Math.max(0, columnWidth * level - columnWidth), mainFlickable.contentWidth - mainFlickable.width))
|
||||
scrollAnimation.to = Math.max(0, Math.min(Math.max(0, columnWidth * level - columnWidth), mainFlickable.contentWidth))
|
||||
scrollAnimation.running = true
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user