Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13626] Blackberry: click event should not fire after finger move

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-04-22T18:55:56.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 08 BB, 2013 Sprint 08, Release 3.2.0
ComponentsBlackBerry
Labelsmodule_scrollview, qe-testadded, sdk-bb
ReporterPedro Enrique
AssigneeJosh Roesslein
Created2013-04-19T00:21:48.000+0000
Updated2014-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();

Comments

  1. Pedro Enrique 2013-04-19

    Pull request: https://github.com/appcelerator/titanium_mobile_blackberry/pull/29
  2. Lokesh Choudhary 2013-05-07

    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
  3. Lokesh Choudhary 2013-05-08

    Also verified on build 3.1.1.v20130507184555 & works as expected.

JSON Source