瀏覽代碼

Update draw-session.ts

main
Steve Ruiz 4 年之前
父節點
當前提交
e08f8f0116
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      state/sessions/draw-session.ts

+ 1
- 1
state/sessions/draw-session.ts 查看文件

120
     // If the delta between the averaged point and the real point is
120
     // If the delta between the averaged point and the real point is
121
     // too great, skip the temporary points. This avoids "sawblading".
121
     // too great, skip the temporary points. This avoids "sawblading".
122
     const tooFarForTemporaryPoints =
122
     const tooFarForTemporaryPoints =
123
-      !isMobile() && vec.dist(newPoint, temporaryPoints[3]) > 32
123
+      isMobile() || vec.dist(newPoint, temporaryPoints[3]) > 32
124
 
124
 
125
     // Update the points and update the shape's parents.
125
     // Update the points and update the shape's parents.
126
     const shape = getShape(data, snapshot.id) as DrawShape
126
     const shape = getShape(data, snapshot.id) as DrawShape

Loading…
取消
儲存