Sfoglia il codice sorgente

Update draw-session.ts

main
Steve Ruiz 4 anni fa
parent
commit
e08f8f0116
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      state/sessions/draw-session.ts

+ 1
- 1
state/sessions/draw-session.ts Vedi File

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

Loading…
Annulla
Salva