|
@@ -132,7 +132,7 @@ export class Images360 extends EventDispatcher{
|
|
|
|
|
|
|
|
|
|
let click = (e) => {//不用"mouseup" 是因为 mouseup有drag object时也会触发
|
|
let click = (e) => {//不用"mouseup" 是因为 mouseup有drag object时也会触发
|
|
- if(Potree.settings.unableNavigate || this.flying || e.button != THREE.MOUSE.LEFT || e.hoverViewport != viewer.mainViewport )return //
|
|
|
|
|
|
+ if(Potree.settings.unableNavigate || this.flying || !e.isTouch && e.button != THREE.MOUSE.LEFT || e.hoverViewport != viewer.mainViewport )return //
|
|
|
|
|
|
/* if(currentlyHovered && currentlyHovered.pano){
|
|
/* if(currentlyHovered && currentlyHovered.pano){
|
|
this.focusPano(currentlyHovered.pano);
|
|
this.focusPano(currentlyHovered.pano);
|
|
@@ -315,7 +315,13 @@ export class Images360 extends EventDispatcher{
|
|
viewport:
|
|
viewport:
|
|
}) */
|
|
}) */
|
|
viewer.mainViewport.unableChangePos = !config.canLeavePano
|
|
viewer.mainViewport.unableChangePos = !config.canLeavePano
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ displayMode = mode
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
if(mode == 'showPanos'){
|
|
if(mode == 'showPanos'){
|
|
camera.far = viewer.farWhenShowPano //修改far
|
|
camera.far = viewer.farWhenShowPano //修改far
|
|
Potree.settings.pointDensity = 'panorama'
|
|
Potree.settings.pointDensity = 'panorama'
|
|
@@ -333,10 +339,9 @@ export class Images360 extends EventDispatcher{
|
|
|
|
|
|
}
|
|
}
|
|
camera.updateProjectionMatrix()
|
|
camera.updateProjectionMatrix()
|
|
-
|
|
|
|
|
|
|
|
- displayMode = mode
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
if(this.elDisplayModel){
|
|
if(this.elDisplayModel){
|
|
this.elDisplayModel.value = mode == 'showPointCloud' ? ">>全景" : '>>点云'
|
|
this.elDisplayModel.value = mode == 'showPointCloud' ? ">>全景" : '>>点云'
|