[app] Fixed scrolling of storage view on SD card insertion
It was producing strange results if contentX was non-zero
This commit is contained in:
parent
4e479a3381
commit
5fb0779519
1 changed files with 5 additions and 3 deletions
|
@ -250,11 +250,13 @@ SilicaFlickable {
|
|||
}
|
||||
|
||||
function scrollToPage(index) {
|
||||
if (currentIndex !== index) {
|
||||
dragScrollAnimation.from = contentX
|
||||
dragScrollAnimation.to = (width + spacing) * index
|
||||
dragScrollAnimation.to = contentX + (width + spacing) * (index - currentIndex)
|
||||
dragScrollAnimation.start()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function dropItem() {
|
||||
if (draggedItem && dragItem.shelfIndex !== currentShelfIndex && currentShelf) {
|
||||
|
|
Loading…
Reference in a new issue