fix: remove entrance animation so dropped items are instantly draggable
Items were fading in from alpha 0 via spring animation, preventing immediate interaction. Removed the entrance animation entirely — items now appear at full opacity and are movable on first frame.
This commit is contained in:
@@ -357,7 +357,7 @@ const PixiCanvas = forwardRef<PixiCanvasHandle, PixiCanvasProps>(
|
||||
// Re-load scene data so textures get re-uploaded to GPU
|
||||
if (sceneRef.current && initialLoadDone.current) {
|
||||
const data = sceneRef.current.serialize();
|
||||
sceneRef.current.loadScene(data, false);
|
||||
sceneRef.current.loadScene(data);
|
||||
}
|
||||
};
|
||||
canvas.addEventListener('webglcontextlost', onContextLost);
|
||||
@@ -441,7 +441,7 @@ const PixiCanvas = forwardRef<PixiCanvasHandle, PixiCanvasProps>(
|
||||
}
|
||||
|
||||
initialLoadDone.current = true;
|
||||
sceneRef.current.loadScene(sceneData, false);
|
||||
sceneRef.current.loadScene(sceneData);
|
||||
}, [canvasState, pixiReady]);
|
||||
|
||||
// ── Space key for pan mode ────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user