Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9926] iOS: Gesture: 'click' event fired before every 'swipe'

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-28T08:47:28.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sRelease 3.0.2
ComponentsiOS
Labelsapi, parity, qe-testadded
ReporterKanat Asanbekov
Assigneejithinpv
Created2012-07-10T17:13:03.000+0000
Updated2017-03-17T18:44:14.000+0000

Description

Description: While running the attached code the log shows a 'click' event fired before every 'swipe' This is not regression it occurs on SDK 2.1.0.GA
var win = Ti.UI.createWindow({
    backgroundColor: '#fff',
    fullscreen: false,
    exitOnClose: true
});
 
var events = [
    'click',
    'swipe'
];
 
var addListener = function(eventName) {
    win.addEventListener    (eventName, function(e) {
        Ti.API.info(eventName);
    });
}
 
for (var i = 0; i < events.length; i++) {
    addListener(events[i]);
}
 
win.open();
Steps to reproduce: 1) create new studio project with attached code and run on device 2) run console using Xcode 3) swipe across screen and check console Result: 'click' event fired before every 'swipe' Expected Result: only 'swipe' events

Comments

  1. jithinpv 2013-03-28

    Issue does not reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
  2. jithinpv 2013-06-21

    Issue does not reproduces Tested with iOS SDK: 5.1 iOS iPhone Simulator: 5.1 Mac OS X Version 10.7.5 Titanium SDK version 3.1.1.v20130606121419 Titanium Studio, build: 3.0.1.201212181159
  3. Lee Morris 2017-03-17

    Closing ticket as the issue cannot be reproduced.

JSON Source