[TIMOB-13626] Blackberry: click event should not fire after finger move
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-22T18:55:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 08 BB, 2013 Sprint 08, Release 3.2.0 |
Components | BlackBerry |
Labels | module_scrollview, qe-testadded, sdk-bb |
Reporter | Pedro Enrique |
Assignee | Josh Roesslein |
Created | 2013-04-19T00:21:48.000+0000 |
Updated | 2014-06-19T12:44:34.000+0000 |
Description
The click event needs to fire when a view detects a click only. Right now it fires on "finger up", even if the finger moved. In this case only the "touchmove" event should fire.
Test Case
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var scrollView = Ti.UI.createScrollView({
backgroundColor: 'white',
layout: 'vertical',
contentWidth: Ti.UI.FILL,
contentHeight: Ti.UI.SIZE
});
for(var i = 0; i < 20; i++) {
var btn = Ti.UI.createButton({
top: 10,
title: 'Hello'
});
scrollView.add(btn);
}
win.add(scrollView);
scrollView.addEventListener('click', function(e){
Ti.API.info(JSON.stringify(e));
});
win.open();
Pull request: https://github.com/appcelerator/titanium_mobile_blackberry/pull/29
Verified the issue. Now the event is fired only on a click & not on finger move. Thus closing the issue. Environment: Ti Studio : 3.1.1.201305031650 Ti BB SDK : 3.2.0.v20130506213759 Mac OSX : 10.8.2 Z10 BB simulator : 10.0.10.261 Q10 Simulator : 10.1.0.1020
Also verified on build 3.1.1.v20130507184555 & works as expected.