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

如果将zepto.js 改成jQueryjs需要更改哪里? #89

Open
q27488 opened this issue Mar 15, 2017 · 3 comments
Open

如果将zepto.js 改成jQueryjs需要更改哪里? #89

q27488 opened this issue Mar 15, 2017 · 3 comments

Comments

@q27488
Copy link

q27488 commented Mar 15, 2017

  1. 首先在zepto.fullpage.js 的 targetTouches 会报错,我将其改为原生的事件:
    e.targetTouches[0].pageX =》 e.originalEvent.targetTouches[0].pageX
    2 .然后changedTouches也报错,我又改成原生的事件:
    e.changedTouches[0].pageY =》 e.originalEvent.changedTouches[0].pageY
  2. (function($, window, undefined) { }(zepto, window)) 的 zepto改成 jQuery
    然后使用,无法实现fullpage效果。

*运行环境: chorme 模拟器 iphone6

@yanhaijing
Copy link
Owner

移动端,还是pc端?

@q27488
Copy link
Author

q27488 commented Mar 17, 2017

移动端

@yanhaijing
Copy link
Owner

目录下有一个原生js的,用这个吧

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

2 participants