Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用goto切换到某一页会出现一会儿的页面空白的现象 #67

Open
691213672 opened this issue Dec 10, 2017 · 3 comments
Open

Comments

@691213672
Copy link

No description provided.

@askdesigners
Copy link

Any update on this one? It looks like a transform is not being applied correctly...

@basvdijk
Copy link

Can confirm this problem.

@basvdijk
Copy link

basvdijk commented Jan 17, 2018

Created a temporary workaround. I calls next a number of times till the the target index has been reached. Not very elegant, but did the job for me till a fix is made.

let diff = index - this.$refs.swipe.index;
let forward = true;

if (diff < 0) {
    forward = false;
}

for (let i = 0; i < Math.abs(diff); i++) {
    setTimeout(() => {
        if (forward) {
            this.$refs.swipe.next();
        } else {
            this.$refs.swipe.prev();
        }
    }, 250 * i);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants