AlloyFinger icon indicating copy to clipboard operation
AlloyFinger copied to clipboard

pressmove刚开始的时候direction为undefined

Open abellee opened this issue 9 years ago • 2 comments

如题,要多滑几下才有方向出来

abellee avatar Jun 01 '16 14:06 abellee

貌似在touchmove的时候是没有设置direction的 demo里只用到delta 但是move的时候 还是有需要direction的

abellee avatar Jun 01 '16 14:06 abellee

@abellee swipe的direction和 move的direction不能共用!一个是touchend结束后根据起点和终点计算出来的,一个是一是移动过程中计算出来的。所以这里建议还是自己根据deltaX和deltaY去计算moveDirection

dntzhang avatar Jun 02 '16 00:06 dntzhang