Temporary measure marker is visible on the snapshot #229
This commit is contained in:
parent
77bfd0d2c8
commit
98706cfceb
@ -194,6 +194,10 @@ export class ViewerGeometry
|
||||
return null;
|
||||
}
|
||||
|
||||
if (mouseCoords.x < 0.0 || mouseCoords.x > width || mouseCoords.y < 0.0 || mouseCoords.y > height) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let raycaster = new THREE.Raycaster ();
|
||||
let mousePos = new THREE.Vector2 ();
|
||||
mousePos.x = (mouseCoords.x / width) * 2 - 1;
|
||||
|
||||
@ -6,6 +6,10 @@ export class Modal
|
||||
constructor ()
|
||||
{
|
||||
this.modalDiv = CreateDiv ('ov_modal');
|
||||
this.modalDiv.addEventListener ('mousemove', (ev) => {
|
||||
ev.stopPropagation ();
|
||||
});
|
||||
|
||||
this.overlayDiv = null;
|
||||
this.resizeHandler = null;
|
||||
this.positionCalculator = null;
|
||||
@ -46,6 +50,9 @@ export class Modal
|
||||
ev.preventDefault ();
|
||||
this.Close ();
|
||||
});
|
||||
this.overlayDiv.addEventListener ('mousemove', (ev) => {
|
||||
ev.stopPropagation ();
|
||||
});
|
||||
this.overlayDiv.addEventListener ('contextmenu', (ev) => {
|
||||
ev.preventDefault ();
|
||||
this.Close ();
|
||||
|
||||
@ -203,7 +203,6 @@ export class Website
|
||||
{
|
||||
if (this.measureTool.IsActive ()) {
|
||||
this.measureTool.MouseMove (mouseCoordinates);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user