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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
