Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16792] Android: swipe - On Android 4.X, it is difficult to trigger the swipe event on Ti.UI.View and the direction is reported incorrectly

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-08-29T09:40:17.000+0000
Affected Version/sRelease 3.2.2, Release 3.2.3
Fix Version/sn/a
ComponentsAndroid
Labelsqe-3.2.3
ReporterWilson Luu
AssigneeHieu Pham
Created2014-04-01T01:40:31.000+0000
Updated2017-03-21T22:02:23.000+0000

Description

*Details:* On Android 4.X, if you swipe on a Ti.UI.View, it will be difficult to trigger the swipe event and, if the swipe event does get triggered, the direction will not be reported correctly. *Note:* 1. This is *not* a regression as this occurs in SDK 3.2.2.GA 2. This occurs only on a 4.X device; on the Droid 3 (2.3.4), the swipe event can be easily triggered and reports the correct direction 3. Cannot reproduce this issue on iOS *Steps to reproduce:* 1. Install and launch the following app.js code:
var win = Ti.UI.createWindow({
    backgroundColor: 'white'
});
 
var view = Ti.UI.createView({
    width: Ti.UI.FILL,
    heigh: Ti.UI.FILL
});
 
win.add(view);
 
view.addEventListener('swipe', function(e){
    alert(e);
});
 
win.open();
2. Try to swipe up, down, left or right *Actual:* There will be difficulty triggering the swipe event. If you do trigger the swipe event, the direction will be reported incorrectly; see swipe_left.png (reported right) and swipe_down.png (reported up). *Expected:* Should be able to trigger the swipe event with ease and the direction should be reported correctly.

Attachments

FileDateSize
swipe_down.png2014-04-01T01:40:31.000+000060502
swipe_left.png2014-04-01T01:40:31.000+000060150

Comments

  1. Ingo Muschenetz 2014-04-02

    Hieu, seems like this might be an important bug, no?
  2. jithinpv 2014-08-29

    Cannot reproduce Titanium SDK version 3.4.0 master, 3.3.0.GA, 3.2.3.GA, 3.2.2.GA Titanium Studio, build: 3.3.0.201407100905 Titanium Command-Line Interface CLI version 3.3.0, Android device : Motorola Moto G, Android version : 4.4.4
  3. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source