optimized handling a little bit and fixed small scss problems
This commit is contained in:
@@ -12,5 +12,10 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
min-width: 450px;
|
min-width: 450px;
|
||||||
max-width: 450px;
|
max-width: 450px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,10 @@ export class Fractal3dComponent implements AfterViewInit, OnDestroy {
|
|||||||
camera.upperRadiusLimit = 20;
|
camera.upperRadiusLimit = 20;
|
||||||
camera.attachControl(this.canvasRef.nativeElement, true);
|
camera.attachControl(this.canvasRef.nativeElement, true);
|
||||||
|
|
||||||
|
canvas.addEventListener('wheel', (evt: WheelEvent) => {
|
||||||
|
evt.preventDefault();
|
||||||
|
}, { passive: false });
|
||||||
|
|
||||||
const plane = MeshBuilder.CreatePlane("plane", { size: 10 }, this.scene);
|
const plane = MeshBuilder.CreatePlane("plane", { size: 10 }, this.scene);
|
||||||
plane.parent = camera;
|
plane.parent = camera;
|
||||||
plane.position.z = 1;
|
plane.position.z = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user