Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13286] Android: ScrollView: SingleTap event does not get fired.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2019-12-10T18:57:21.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sRelease 9.0.0
ComponentsAndroid
Labelsreprod
ReporterParas Mishra
AssigneeChristopher Williams
Created2013-04-01T09:19:04.000+0000
Updated2019-12-11T10:35:25.000+0000

Description

Android: ScrollView: SingleTap event does not get fired. Steps to reproduce: 1. Run timob_6711 under ScrollView module. 2. Click press and Tap the red area. Expected: An alert will be displayed saying "singletap event fired" Actual: No alert is displayed.

Comments

  1. Paras Mishra 2014-01-15

    Testcase:
       var win = Ti.UI.createWindow({
           backgroundColor : 'white'
       });
       var scrollview = Ti.UI.createScrollView({
       				layout : 'vertical',
       				height : '90%',
       				contentWidth : 'auto',
       				contentHeight : 'auto',
       				showVerticalScrollIndicator : true,
       				touchEnabled : true,
       				backgroundColor : 'red'
       			});
       			
       win.add(scrollview);
       scrollview.addEventListener('singletap',function(){
       	alert('single tap occured');
       });
       
       scrollview.addEventListener('doubletap',function(){
       	alert('doubletap tap occured');
       });
       
       win.open();
       
       
    Singletap and doubletap events are not getting fired. Environment used: Device : Google Nexus 7, Android Version: 4.4.2 SDK: 3.2.1.v20140114125643 CLI version : 3.2.1-beta OS : MAC OSX 10.9 Alloy: 1.3.1-beta2 ACS: 1.0.11 npm:1.3.2 Appcelerator Studio, build: 3.2.1.201401091743 titanium-code-processor: 1.1.0 XCode : 5.0.2
  2. Lee Morris 2017-06-27

    I am able to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170623141152 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
  3. Michael Gangolf 2019-09-30

    PR: https://github.com/appcelerator/titanium_mobile/pull/11251
         var win = Ti.UI.createWindow({
               backgroundColor: 'white'
           });
           var scrollview = Ti.UI.createScrollView({
               layout: 'vertical',
               height: '90%',
               contentWidth: 'auto',
               contentHeight: 'auto',
               showVerticalScrollIndicator: true,
               touchEnabled: true,
               backgroundColor: 'red'
           });
       
           win.add(scrollview);
           scrollview.addEventListener('click', function() {
               console.log('click');
           });
       
           scrollview.addEventListener('singletap', function() {
               console.log('single tap occured');
           });
       
           scrollview.addEventListener('doubletap', function() {
               console.log('doubletap tap occured');
           });
       
           win.open();
       
  4. Christopher Williams 2019-12-10

    https://github.com/appcelerator/titanium_mobile/pull/11251
  5. Christopher Williams 2019-12-10

    merged to master (did CR and FR) for 9.0.0
  6. Sohail Saddique 2019-12-11

    Fix verified in build: 9.0.0.v20191210172911. Single tap/double tap events fire as expected. Tested with multiple Pixel 3 simulators and Pixel 3a device. Ticket closed.

JSON Source