Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9812] Android: Webview: Some webview events not fired after scrolling on the webview

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-07-24T18:35:21.000+0000
Affected Version/sRelease 2.1.0, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and060112
ReporterSatyam Sekhri
AssigneeEric Merriman
Created2012-06-27T00:30:28.000+0000
Updated2017-07-24T18:35:22.000+0000

Description

Some of the webview events do not get fired after scrolling on the webview Not a Regression. The issues occurs as far as 1.8.2 Steps to Reproduce: 1. Create an application with code below. Launch the application 2. Perform certain events on the webview and check the corresponding alerts for those events 3. Now perform a scroll gesture on the webview 4. Again perform events on the webview and check the corresponding alerts for those events Actual: After step 4, out of the events mentioned in the code below, only events for click, longclick and load are fired. Expected: All webview events should fire after scroll on the webview
var win = Titanium.UI.createWindow({  
    backgroundColor:'#fff'
});
var Webheight=Ti.Platform.displayCaps.platformHeight;
var webview = Ti.UI.createWebView({
			top : 10,
			height : Webheight+50,
			url : 'http://www.google.com'	
		});
		win.add(webview);
		webview.addEventListener('longpress', function(e) {
			Ti.API.info('TI: Long Pressed Webview');
		});
		webview.addEventListener('longclick', function(e) {
			Ti.API.info('TI: Long click Webview');
		});
		webview.addEventListener('load', function(e) {
			Ti.API.info('TI: Load Webview');
		});
		webview.addEventListener('pinch', function(e) {
			Ti.API.info('TI: pinch Webview');
		});
		webview.addEventListener('swipe', function(e) {
			Ti.API.info('TI: swipe Webview');
		});
		//Uncomment to check these events
		/*webview.addEventListener('touchcancel', function(e) {
			Ti.API.info('TI: touch cancel Webview');
		});
		webview.addEventListener('touchend', function(e) {
			Ti.API.info('TI: touch end Webview');
		});
		webview.addEventListener('touchstart', function(e) {
			Ti.API.info('TI: touchstart Webview');
		});
		webview.addEventListener('touchmove', function(e) {
			Ti.API.info('TI: touchmove Webview');
		});*/
		webview.addEventListener('dblclick', function(e) {
			Ti.API.info('TI: double click Webview');
		});
		webview.addEventListener('doubletap', function(e) {
			Ti.API.info('TI: double tap Webview');
		});
		webview.addEventListener('singletap', function(e) {
			Ti.API.info('TI: singletap Webview');
		});
win.open();

Comments

  1. jithinpv 2013-03-01

    Issue reproduces with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Android Emulator: Android SDK version: 2.2
  2. Lee Morris 2017-07-24

    I am unable to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source