Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7038] Android: Double click or double tap events don't work for a label which is created under a view

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-05-17T14:48:16.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.0.0
Fix Version/sRelease 2.0.1
ComponentsAndroid
Labelsn/a
ReporterNikhil Sharma
AssigneeNeeraj Gupta
Created2012-01-09T14:35:37.000+0000
Updated2012-07-16T03:27:05.000+0000

Description

Double click or double tap events don't work for a label which is created under a view.

Repro Steps:

Create a project to include the code below.
//app.js
var win = Ti.UI.createWindow({
	backgroundColor:'white'
});

var myView = Ti.UI.createView({
    height:100,
     top:50,
     width:250,
     backgroundColor:'red'
});

win.add(myView);

label= Ti.UI.createLabel({
    text: 'Double Tap or Double Click me',
    color: '#000',
    height:100,
    width:250,
    textAlign:'center'
});

myView.addEventListener('dblclick',function(e){
    Ti.API.info('Double Click Works!!!!');
    alert('Been double clicked');
});

myView.addEventListener('doubletap',function(e){
    Ti.API.info('Double Tap Works!!!!');
    alert('Been double tapped');
});

myView.add(label);
win.open();

Comments

  1. Junaid Younus 2012-05-17

    Tested with 2.0.1GA2 on a Samsung Galaxy S2, unable to reproduce the issue. Ticket closed.
  2. Neha Chhabra 2012-07-16

    Environment used for verification - Tested with Titanium SDK: 2.1.1.v20120712160111,2.0.1GA2 Tested with Titanium  Studio: 2.1.1.201207121732 Device - Android Emulator 2.3.3, Samsung Galaxy Note Machine OS - MAC 10.7.3 Unable to reproduce it.So,closing this ticket.

JSON Source