开发者

jqTouch UIWebView Tap-Jump Problem

I'm using jqTouch inside a UIWebView of my native iPhone application and many of the pages have very weird "tap-jump" issues.

About 75% of the time that I access a page if I scroll down a bit, and just tap anywhere on the screen, it jumps to the top of the page. If I open that same page in the iPhon开发者_如何学运维e Safari browser, it works great every time and no "tap-jump" issue. So it appears to be an issue ONLY within the UIWebView.

I've been spending hours and hours trying different things to figure out why this is happening and I welcome any ideas.

Thanks,

John


It is expected behavior for jQTouch to scrollTo(0,0) on slide left/right navigation. Of course, this will only create a noticeable effect if you tap a link while the page is scrolled (i.e., if the page isn't scrolled, it can't jump).

I don't know why you'd see a difference between UIWebView and Mobile Safari, unless perhaps the UIWebView is shorter than Mobile Safari, which could create the possibility of scrolling in the UIWebView that doesn't exist in Mobile Safari.

My suggestions are:

  • Make sure you have the latest version of jQTouch (https://github.com/senchalabs/jQTouch)
  • Make sure you are doing exactly the same testing in UIWebView as you are in Mobile Safari (i.e., if you scroll down prior to tapping in one, do the same in the other).

HTH,

j

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜