mirror of
https://github.com/trafficlunar/blockmatic.git
synced 2026-06-28 06:34:13 +00:00
fix: slight performance improvements
This commit is contained in:
parent
6773f7f87d
commit
fba6ccdb80
3 changed files with 38 additions and 35 deletions
|
|
@ -28,7 +28,7 @@ export function useEraserTool(mouseCoords: Position) {
|
|||
}
|
||||
};
|
||||
|
||||
// Interpolate to ensure continuous erasing
|
||||
// Interpolate to remove holes
|
||||
if (lastPosition.current) {
|
||||
const interpolatedPositions = interpolate(radius, lastPosition.current, radiusPosition);
|
||||
if (!interpolatedPositions) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue