[TIMOB-20409] iOS: Add rest of stylus properties to 3D touch events
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-07-21T18:38:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.0.0 |
Components | iOS |
Labels | 3dtouch, applepencil, ios |
Reporter | Angel Petkov |
Assignee | Angel Petkov |
Created | 2016-02-16T18:00:33.000+0000 |
Updated | 2016-10-05T23:35:51.000+0000 |
Description
Add the azimuthAngleInView and azimuthUnitVectorInView. The properties only being available if using a stylus.
PR: https://github.com/appcelerator/titanium_mobile/pull/8110 * Added azimuthUnitVectorInViewX and azimuthUnitVectorInViewY * I originally preciseLocationInView and precisePreviousLocationInView (x,y). However after some thought removed them as they are only acurate if using touchmove. They are not pencil specific properties nor is the accuracy that much more precise than the x and y coordinates we currently have. Demo Code: