Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13407] Android: WebView 'swipe' event is not getting triggered

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-05-15T23:19:26.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 10 API, 2013 Sprint 10, Release 3.2.0
ComponentsAndroid
Labelsandroid, module_webview, qe-testadded, swipe, webview
ReporterCarter Lathrop
AssigneeSunila
Created2013-04-05T07:26:16.000+0000
Updated2013-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

Comments

  1. Soumya Kanti Kar 2013-04-25

    This is also not working in 3.1.0GA
  2. Sunila 2013-05-10

    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
  3. Priya Agarwal 2013-10-10

    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.

JSON Source