[TIMOB-13658] iOS: Window swipe event blocks touches in non-scrollable part of web view
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | parity, reprod |
Reporter | Ezoom Agency |
Assignee | Unknown |
Created | 2013-04-23T20:02:26.000+0000 |
Updated | 2018-02-28T20:03:51.000+0000 |
Description
*Problem description*
If I have a swipe event attached to a container holding a webview, the nonscrollable part of the webview will not work.
*Steps to reproduce*
1 - Compile to iOS simulator
2 - Try to click sign up yellow button (it won't work), or other part of the twitter header.
3 - Remove the "doSwipe" from the test case
4 - Test again and it will work
*Test case*
function doSwipe(e) {
Ti.API.info('e: ' + JSON.stringify(e))
}
var window = Ti.UI.createWindow();
window.addEventListener("swipe", doSwipe);
var webview = Ti.UI.createWebView({
url : "https://twitter.com/appcelerator"
});
window.add(webview);
window.open();
Ok, this was easy to do so I tested without alloy, and yes the problem is there without alloy, same steps for testing. here is the code: app.js ============== function doSwipe(e) { Ti.API.info('e: ' + JSON.stringify(e)) } var window = Ti.UI.createWindow(); //THE BIG VILAIN window.addEventListener("swipe",doSwipe) var webview = Ti.UI.createWebView({ url:"https://twitter.com/appcelerator" }) window.add(webview) window.open();
Tested and confirmed on iOS 6 simulator, Ti SDK 3.1 GA. Not reproducible on Android, so it's iOS-specific.
Tested on 3.1.3GA and iOS7 and the bug still happens, any possible updates on this?
I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131