Timing -touchesMoved:withEvent: is called has been changed on a force touch(3D Touch) supported device's.
Touch the screen. (It does not move the finger)
I have verified the following device's.
iPhone4s(iOS9.0.0) (Does not support force touch)
-touchesBegan:withEvent:
iPhone6s
-touchesBegan:withEvent:
-touchesMoved:withEvent:
-touchesMoved:withEvent: is called by the movement to the z-axis direction in force touch(3D Touch) supported device's. Here is changing only the value of -[UITouch force].
Because only -[UITouch force] is changed here, -velocityInView: returns CGPointZero.
I added confirmation of CGPointZero to prevent this.
Timing
-touchesMoved:withEvent:
is called has been changed on a force touch(3D Touch) supported device's.Touch the screen. (It does not move the finger)
I have verified the following device's.
iPhone4s(iOS9.0.0) (Does not support force touch)
iPhone6s
-touchesMoved:withEvent:
is called by the movement to the z-axis direction in force touch(3D Touch) supported device's. Here is changing only the value of -[UITouch force]. Because only -[UITouch force] is changed here,-velocityInView:
returns CGPointZero.I added confirmation of CGPointZero to prevent this.