feature/portToBabylon #21
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user