I am working on an iOS app that utilizes a UIWebView. The web view contains javascript that responds to scroll events triggered by tapping on either side of the web view. However, I have encountered an issue where the javascript does not detect scroll events when scrolling is done programmatically.
Here is the code snippet I am using to scroll the web view:
[self.webView.scrollView setContentOffset:CGPointMake(targetX, y);
Is there an alternative method to ensure that the javascript reacts to the scroll? Or should I consider running javascript on the web view programmatically after the scroll event is completed?