[TIMOB-2225] Tableview click events do not have x & y data
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | apidoc, clickevent, defect, ios, ipad, iphone, tableview |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T03:14:05.000+0000 |
Updated | 2011-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
File | Date | Size |
---|---|---|
table_basic.js | 2011-04-15T03:14:05.000+0000 | 889 |
Assigning to Jay... This is an opportunistic fix for R1.5
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).
(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...
(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...
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: