optimized handling a little bit and fixed small scss problems

This commit is contained in:
2026-02-12 08:35:26 +01:00
parent 085201913f
commit ea15e66c50
2 changed files with 9 additions and 0 deletions

View File

@@ -12,5 +12,10 @@
cursor: pointer;
min-width: 450px;
max-width: 450px;
&:hover {
transform: translateY(-5px);
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
}
}

View File

@@ -80,6 +80,10 @@ export class Fractal3dComponent implements AfterViewInit, OnDestroy {
camera.upperRadiusLimit = 20;
camera.attachControl(this.canvasRef.nativeElement, true);
canvas.addEventListener('wheel', (evt: WheelEvent) => {
evt.preventDefault();
}, { passive: false });
const plane = MeshBuilder.CreatePlane("plane", { size: 10 }, this.scene);
plane.parent = camera;
plane.position.z = 1;