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

FullPage 实例实例对象在使用 to 的时候页面不滚动。 #115

Open
MarRoar opened this issue Aug 28, 2018 · 0 comments
Open

FullPage 实例实例对象在使用 to 的时候页面不滚动。 #115

MarRoar opened this issue Aug 28, 2018 · 0 comments

Comments

@MarRoar
Copy link

MarRoar commented Aug 28, 2018

问题补充:
`

var mainPage =  new AlloyTouch.FullPage("#fullpage",{...})

oBtn.addEventListener("touchend", function () {
	mainPage.to(4) # 点击oBtn 跳转到 第4页
})

`
出现的情况是页面直接淡出(而不是滚动到指定页码位置),progressBar 也会跳转到对应的页码。
我在 alloy_touch.full_page.js 的 to 方法里面加

this.alloyTouch.currentPage = index

然后就可以了。

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

1 participant