+1
Answered

Better detection for onswiperight/left

mrcole13 11 year бұрын жаңартылды 11 year бұрын 4
I am using a web view in our app that loads a url, which is essentially an article with title/text/image, and can be variable height. When I swipe right or left on the web view, I want to load the next article from an RSS feed. I have this working just fine, however, the detection of the onswipe is a bit picky. I understand why this is, because it's unsure if the user is trying to view more text or swipe to the next article. Is there a better method to detect this event and allow the swipe to occur a little more natural?
have you already added bounces="no" to your web view? This will make the scrolling a little smoother.
Yeah, bounces="no" is set for the web view.
Unfortunately short of locking the webview from scrolling, there isn't much you will be able to do here. You could consider adding arrows on each side that have onclickups instead, but the UI of that might not be desirable.
That's what I figured, but wanted to make sure I wasn't missing anything. I'll look over my options and see what may work best. Thanks!