yanhaijing / zepto.fullpage

Focusing on the fullPage.js for mobile terminals.
MIT License
2.1k stars 510 forks source link

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

Open q27488 opened 7 years ago

q27488 commented 7 years ago
  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 commented 7 years ago

移动端,还是pc端?

q27488 commented 7 years ago

移动端

yanhaijing commented 7 years ago

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