[app] Fixed the problem with the initial slider position

This commit is contained in:
Slava Monich 2016-10-08 01:09:57 +03:00
parent 44e40dbb3a
commit 0a42d93e14

View file

@ -150,6 +150,7 @@ SilicaFlickable {
if (page >=0 && page !== _currentPage) { if (page >=0 && page !== _currentPage) {
_jumpingTo = page _jumpingTo = page
positionViewAtIndex(page, ListView.Center) positionViewAtIndex(page, ListView.Center)
pager.currentPage = page
_jumpingTo = -1 _jumpingTo = -1
if (_currentPage !== page) { if (_currentPage !== page) {
console.log("oops, still at", _currentPage) console.log("oops, still at", _currentPage)