Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2225] Tableview click events do not have x & y data

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:28.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsapidoc, clickevent, defect, ios, ipad, iphone, tableview
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T03:14:05.000+0000
Updated2011-04-17T01:58:28.000+0000

Description

Tested with 4.1 and 1.5 the click events event.x & .y are null.

Code attached.

HD ticket:
http://developer.appcelerator.com/helpdesk/view/51581">http://developer.appcelerator.com/helpdesk/view/51581

Attachments

FileDateSize
table_basic.js2011-04-15T03:14:05.000+0000889

Comments

  1. Ralf Pfeiffer 2011-04-15

    Assigning to Jay... This is an opportunistic fix for R1.5

  2. jtobias 2011-04-15

    Tested with iOS 4.2 (Beta GM Seed) and 1.5.0 (latest as of 11/17/2010), and event.x and event.y are null.
    The Customer facing documentation for TableView and TableViewRow list as their events the 'x' and 'y' values for "click", so after speaking with Clint and Ralf, and input from QA and a few others, this should be treated as a Documentation bug for 1.5.0 and a Feature Request for 1.6.0. Adding "apidoc" tag for this reason.

    COURSE OF ACTION:
    There are several potential paths through this fix, and getting the customer a reality update feels most important. Ralf to decide before release.

    RELATED BUG(S):
    See LH#1253 where again, 'x' and 'y' do not get reported. I am currently looking the code for TiUITableView.m and Proxy, especially where @"click" appears, to see just what happens. Tramer thinks that although this ticket and LH#1253 may have similar solutions, it's not subsequently obvious that the root cause would be the same (his words in our IRC today).

  3. Jeff Haynie 2011-04-15

    (from [b934d112ba4be5c30fbaa77a96b8cc74f22bdaa0]) [#2225 state:fixed-in-qa] Tableview (and buttonsnow support x&y. Local only, no global (yet!) https://github.com/appcelerator/titanium_mobile/commit/b934d112ba4be5c30fbaa77a96b8cc74f22bdaa0"> https://github.com/appcelerator/titanium_mobile/commit/b934d112ba4b...

  4. Jeff Haynie 2011-04-15

    (from [0bb87b64f2cb7fee663be1070fa5671c5a60f7a0]) [#2225] Table cells now report hit points as well, if they recieve the hit event. https://github.com/appcelerator/titanium_mobile/commit/0bb87b64f2cb7fee663be1070fa5671c5a60f7a0"> https://github.com/appcelerator/titanium_mobile/commit/0bb87b64f2cb...

  5. Pedro Enrique 2011-04-15

    Resolved.
    Tested on iPhone 4 running 4.2 and on iPhone Simulator as well as iPad simulator running 4.0, 4.1, and 4.2
    SDK 1.5 from 12/9 (r43358e5f)
    Tested with code provided as well as this:

       var data = [{title:'one'},{title:'two'}];
       var table = Ti.UI.createTableView({data:data});
       win.add(table);
       table.addEventListener('click',function(e){
           alert('row x: '+e.x+', row y: '+e.y);
       });
       

JSON Source