[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 Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-08-29T09:40:17.000+0000 |
Affected Version/s | Release 3.2.2, Release 3.2.3 |
Fix Version/s | n/a |
Components | Android |
Labels | qe-3.2.3 |
Reporter | Wilson Luu |
Assignee | Hieu Pham |
Created | 2014-04-01T01:40:31.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
swipe_down.png | 2014-04-01T01:40:31.000+0000 | 60502 |
swipe_left.png | 2014-04-01T01:40:31.000+0000 | 60150 |
Hieu, seems like this might be an important bug, no?
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
Closing ticket as the issue cannot be reproduced and due to the above comments.