Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24111] Windows: Touch related events should contain the same data

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2021-02-11T12:13:28.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sn/a
ComponentsWindows
Labelsparity, qe-6.0.0
ReporterEwan Harris
AssigneeUnknown
Created2016-11-07T16:49:51.000+0000
Updated2021-02-11T12:13:28.000+0000

Description

Description

When using an touch related event such as singletap and click, different data is returned for each one. For example take the below events from the attached code, on Windows and iOS. These two events are only examples, I would expect the same data to be available for all touch based events such as longpress, longclick etc
[INFO] :   x
[INFO] :   53.5
[INFO] :   y
[INFO] :   367
[INFO] :   source
[INFO] [object class TitaniumWindows::UI::TableView]
[INFO] :   type
[INFO] :   singletap
[INFO] :   sectionIndex
[INFO] :   0
[INFO] :   index
[INFO] :   8
[INFO] :   row
[INFO] [object class TitaniumWindows::UI::TableViewRow]
[INFO] :   rowData
[INFO] [object Object]
[INFO] :   source
[INFO] [object class TitaniumWindows::UI::TableViewRow]
[INFO] :   type
[INFO] :   click
[INFO]  detail
[INFO]  0
[INFO]  row
[INFO]  [object TiUITableViewRow]
[INFO]  x
[INFO]  91.66665649414062
[INFO]  y
[INFO]  37.33332824707031
[INFO]  section
[INFO]  [object TiUITableViewSection]
[INFO]  searchMode
[INFO]  0
[INFO]  rowData
[INFO]  [object TiUITableViewRow]
[INFO]  index
[INFO]  0
[INFO]  bubbles
[INFO]  1
[INFO]  type
[INFO]  click
[INFO]  source
[INFO]  [object TiUITableViewRow]
[INFO]  cancelBubble
[INFO]  0
[INFO]  detail
[INFO]  0
[INFO]  row
[INFO]  [object TiUITableViewRow]
[INFO]  search
[INFO]  0
[INFO]  y
[INFO]  37.33332824707031
[INFO]  x
[INFO]  91.66665649414062
[INFO]  section
[INFO]  [object TiUITableViewSection]
[INFO]  rowData
[INFO]  [object TiUITableViewRow]
[INFO]  index
[INFO]  0
[INFO]  bubbles
[INFO]  1
[INFO]  type
[INFO]  singletap
[INFO]  source
[INFO]  [object TiUITableView]
[INFO]  cancelBubble
[INFO]  0

Steps to reproduce

Add the above code to an existing app.js

Build for Windows platform

Tap a tableviewrow

Actual result

Events provide different event data

Expected result

Events should provide the same event data

Comments

  1. Kota Iguchi 2016-12-09

    I have been trying to implement this but had no luck, it turns out platform component does not allow this. I have pushed a PR for reference to see if we can benefit something from community: https://github.com/appcelerator/titanium_mobile_windows/pull/898 * Click events does not provide any coordinates, thus it does not return x and y. * Touch events other than Click do not return any row-related data such as row index. So I would resolve this as "won't fix" because of platform component spec, or just postpone this in this sprint target hoping we can get something from community.
  2. Kota Iguchi 2017-01-17

    So I once tried to fix this ([PR898](https://github.com/appcelerator/titanium_mobile_windows/pull/898)) but I was not able to make it work because of platform component limitations. I would remove 6.1.0 target for now but I would like to keep this ticket open so we can keep track on it.

JSON Source