|
@@ -9,7 +9,7 @@ import {KeyCodes} from "../KeyCodes.js";
|
|
|
import {Utils} from "../utils.js";
|
|
|
import Common from "../custom/utils/Common.js";
|
|
|
import DepthBasicMaterial from '../custom/materials/DepthBasicMaterial.js'
|
|
|
-
|
|
|
+import browser from "../custom/utils/browser.js";
|
|
|
|
|
|
let {Buttons} = Potree.defines
|
|
|
|
|
@@ -1360,7 +1360,8 @@ export class InputHandler extends THREE.EventDispatcher {
|
|
|
}else{
|
|
|
raycaster.params.Line.threshold = 0.04; //相对长度
|
|
|
}
|
|
|
- raycaster.params.Line2 = {threshold :20 } //拓宽的lineWidth
|
|
|
+ raycaster.params.Line2 = {threshold : browser.isMobile()?100:20 } //拓宽的lineWidth
|
|
|
+
|
|
|
|
|
|
//raycaster.layers.enableAll()//add
|
|
|
Potree.Utils.setCameraLayers(raycaster, //设置能识别到的layers(如空间模型里只有mapViewer能识别到marker)
|