Re: UIWebView and Mobile Safari event handling problem (iOS)
Re: UIWebView and Mobile Safari event handling problem (iOS)
- Subject: Re: UIWebView and Mobile Safari event handling problem (iOS)
- From: Steve Christensen <email@hidden>
- Date: Sun, 08 Jan 2012 18:59:29 -0800
It looks like UIWebView snarfs up all the gestures by default. I had a project where I needed to "see" a tap on the web view without otherwise disrupting the normal behavior. I ended up creating a UITapGestureRecognizer, set its delegate to "self", and then implemented -gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer:, always returning YES. Perhaps something similar would work for you.
On Jan 4, 2012, at 7:05 AM, Nick wrote:
> Hi!
> I have a web page that handles finger dragging (it's a simple
> presentation auto generated from a PPS presentation, with pages
> animatedly flipped when the "mouse" is dragged - with the help of
> JavaScript). On Mobile Safari it works just fine, but on UIWebView,
> the pages are not being flipped.The nice page flipping animation
> doesn't work on UIWebView, and it behaves strangely in general. I
> guess I should pass somehow these dragging events to the view, so it
> behaves like Safari? How could I fix this?
>
> This UIWebView also handles double taps (by zooming in the view - but
> again, with no animation, unlike Mobile Safari), and zoomed area can't
> be scrolled on UIWebView (unlike Safari). Apparently because because
> the operation requires this dragging event, which is not passed to the
> web page?
>
> The main question is - why Mobile Safari renders the page correctly
> with all the animation, while UIWebView doesn't? Aren't they the same,
> in the HTML/JS rendering regard?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden