jnnan commited on
Commit
bfa7159
1 Parent(s): ac3fee3

Update static/index.js

Browse files
Files changed (1) hide show
  1. static/index.js +1 -1
static/index.js CHANGED
@@ -145,7 +145,7 @@ function init() {
145
  mouse.x = ((event.x - rect.left) / rect.width) * 2 - 1;
146
  mouse.y = -((event.y - rect.top) / rect.height) * 2 + 1;
147
 
148
- if (isDrawing && pointerDown && points.length < 500) {
149
  raycaster.setFromCamera(mouse, camera);
150
  const intersects = raycaster.intersectObject(plane);
151
  const point = intersects[0].point;
 
145
  mouse.x = ((event.x - rect.left) / rect.width) * 2 - 1;
146
  mouse.y = -((event.y - rect.top) / rect.height) * 2 + 1;
147
 
148
+ if (isDrawing && pointerDown && points.length < 200) {
149
  raycaster.setFromCamera(mouse, camera);
150
  const intersects = raycaster.intersectObject(plane);
151
  const point = intersects[0].point;