Spaces:
Paused
Paused
Update static/index.js
Browse files- 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 <
|
| 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 < 150) {
|
| 149 |
raycaster.setFromCamera(mouse, camera);
|
| 150 |
const intersects = raycaster.intersectObject(plane);
|
| 151 |
const point = intersects[0].point;
|