This commit is contained in:
2025-08-26 14:27:41 +08:00
parent 0c4c956868
commit f5d915bd58
3 changed files with 13 additions and 4 deletions

View File

@ -419,7 +419,9 @@ class YJEarth {
let ClickHandler = new Cesium.ScreenSpaceEventHandler(_this.viewer.canvas)
ClickHandler.setInputAction((movement) => {
let textList = document.getElementsByClassName('popup-textarea')
console.log(_this.viewer, 'hhhh')
// let textList = document.getElementsByClassName('popup-textarea')
let textList = _this.viewer._element.getElementsByClassName('popup-textarea')
_this.isLeftClick = false
for (let i = textList.length - 1; i > -1; i--) {
let left = returnNumber(textList[i].style.left)
@ -428,6 +430,7 @@ class YJEarth {
let height = textList[i].clientHeight * 1
let x = movement.position.x
let y = movement.position.y
console.log(i, left, top, width, height, x, y, 'yyyyy')
if (x > left && x < left + width && y > top && y < top + height) {
if (_this.clickTextDom) {
_this.clickTextDom.style['pointer-events'] = 'none'