Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20409] iOS: Add rest of stylus properties to 3D touch events

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-07-21T18:38:13.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0
ComponentsiOS
Labels3dtouch, applepencil, ios
ReporterAngel Petkov
AssigneeAngel Petkov
Created2016-02-16T18:00:33.000+0000
Updated2016-10-05T23:35:51.000+0000

Description

Add the azimuthAngleInView and azimuthUnitVectorInView. The properties only being available if using a stylus.

Comments

  1. Angel Petkov 2016-07-06

    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:
       // this sets the background color of the master UIView (when there are no windows/tab groups on it)
       Titanium.UI.setBackgroundColor('#000');
       
       
       var win = Titanium.UI.createWindow({title:'TIMOB-23501'}),
       view = Titanium.UI.createView({
          borderRadius:10,
          backgroundColor:'blue',
          width:Ti.UI.FILL,
          height:Ti.UI.FILL
       });
       
       view.addEventListener("touchmove", function(e) {
       	Ti.API.info("View",e);
       });
       
       win.add(view);
       win.open();
       
  2. Abir Mukherjee 2016-10-05

JSON Source