[TIMOB-11006] Blackberry: View click events are firing multiple times.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-08-07T23:40:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-19 BB, BB Preview 3 |
Components | BlackBerry |
Labels | blackberry, module_window, qe-manualtest, regression |
Reporter | Josh Roesslein |
Assignee | Josh Roesslein |
Created | 2012-09-19T15:35:40.000+0000 |
Updated | 2014-08-07T23:41:57.000+0000 |
Description
If you click a view the "click" event will fire multiple times (twice).
It seems we are now getting both a touch "up" and "down" event.
This appears to be a regression from the R8 SDK update.
Test Case
var win = Ti.UI.createWindow();
var view = Ti.UI.createView({width:100, height: 100, backgroundColor: 'blue');
win.add(view);
view.addEventListener('click', function(e) {
Ti.API.info('click event fired');
})
win.open();
Success: The click event should fire once when clicking the blue view.
Failure: The click event is firing multiple times for each click by the user.
Created [PR #2](https://github.com/appcelerator/titanium_mobile_blackberry/pull/2) to resolve issue.