Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-9812

Android: Webview: Some webview events not fired after scrolling on the webview


    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.1.0, Release 3.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium Studio:
      Titanium SDK: 2.1.0.v20120625134154
      Android Device: Android Emulator 2.2, Android Tab (V3.2)
      Runtime: v8


      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({  
      var Webheight=Ti.Platform.displayCaps.platformHeight;
      var webview = Ti.UI.createWebView({
      			top : 10,
      			height : Webheight+50,
      			url : 'http://www.google.com'	
      		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');




            • Assignee:
              emerriman Eric Merriman
              ssekhri Satyam Sekhri
            • Watchers:
              1 Start watching this issue


              • Created:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  Sync status:
                  Last received:
                  Last sent:

                  Git Integration