[TIMOB-13407] Android: WebView 'swipe' event is not getting triggered
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-15T23:19:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 10 API, 2013 Sprint 10, Release 3.2.0 |
Components | Android |
Labels | android, module_webview, qe-testadded, swipe, webview |
Reporter | Carter Lathrop |
Assignee | Sunila |
Created | 2013-04-05T07:26:16.000+0000 |
Updated | 2013-10-10T08:58:03.000+0000 |
Description
*Problem*
The 'swipe' event for the WebView has been registered but when the swipe event is done, it is not getting triggered. If it is changed from WebView to Window, then the gesture is getting detected, but the same is not hapenning in WebView.
*Steps to Reproduce*
1. Copy and paste code into app.js
2. try to swipe, notice no event triggered.
var currentWindow = Ti.UI.createWindow({
exitOnClose : true
});
var webview = Ti.UI.createWebView({
url : 'http://google.co.in'
});
webview.addEventListener('swipe',function(e) {
alert('<<Swipe>>');
});
currentWindow.add(webview);
currentWindow.open();
Doc Supported: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.WebView-event-swipe
This is also not working in 3.1.0GA
Made sure that we call the gestureDetector handling in onTouchEvent as we do in TiUIView. The handler is reused from the parent. https://github.com/appcelerator/titanium_mobile/pull/4249
Verified the fix with: Appc-Studio: 3.2.0.201310092427 Sdk:3.2.0.v20131009134844 alloy:1.2.2 npm:1.3.2 titanium:3.2.0 titanium-code-processor:1.0.3 Device:Google Nexus 7(v4.3),ipodTouch1(v7.0) Xcode: 5 Swipe event on webview is triggered successfully.