[AC-643] Shake gesture timestamp always 0, x/y undefined
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2016-03-07T20:16:34.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | gesture, ios, shake |
Reporter | Arjan |
Assignee | Shak Hossain |
Created | 2016-02-23T14:23:52.000+0000 |
Updated | 2016-03-07T20:16:34.000+0000 |
Description
Shake gesture return object doesn't contain e.x and e.y, and e.timestamp is always 0 (also after second shake).
My code (index controller):
Ti.Gesture.addEventListener('shake',function(e) {
console.info(e);
});
Output (with every shake):
[INFO] : {
[INFO] : bubbles = 1;
[INFO] : cancelBubble = 0;
[INFO] : source = "[object GestureModule]";
[INFO] : timestamp = 0;
[INFO] : type = shake;
[INFO] : }
Hello, I tested the issue with SDK 5.2.0.GA in Android 4.4.2(Explorer ZV). Ti. Gesture seems to be working as expected. Below is the console log.
Sample Code Segment
index.jsindex.xml
Step to test
1. After the app launch, Jush shake the device to see the output in the console. Thanks.