修改文本框二三维不同步问题

This commit is contained in:
2025-08-26 14:47:56 +08:00
parent f9a3ffb359
commit 9289d08f24
2 changed files with 1 additions and 3 deletions

View File

@ -419,7 +419,6 @@ class YJEarth {
let ClickHandler = new Cesium.ScreenSpaceEventHandler(_this.viewer.canvas)
ClickHandler.setInputAction((movement) => {
console.log(_this.viewer, 'hhhh')
// let textList = document.getElementsByClassName('popup-textarea')
let textList = _this.viewer._element.getElementsByClassName('popup-textarea')
_this.isLeftClick = false
@ -430,7 +429,6 @@ 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'