Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8908] iOS: Click/Swipe events fired differently in iOS and Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-16T12:42:46.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 3.0.2
ComponentsiOS
Labelsparity
ReporterAllen Yeung
AssigneeShameer Jan
Created2012-04-27T17:38:44.000+0000
Updated2017-03-17T18:34:02.000+0000

Description

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();
In this code, Android will only fire the swipe event whenever we swipe. In iOS, we fire a click event first, then a swipe event. We need to determine which is the correct behavior and change the other accordingly.

Comments

  1. Shameer Jan 2013-04-16

    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. Lee Morris 2017-03-17

    Closing ticket as the issue cannot be reproduced.

JSON Source