Hi,everybody!
i bind Cesium.ScreenSpaceEventType.Mouse_UP to pick a position and popup a ui window ,when i interact with the popup window such as clicked some button,the clicked action raised the Cesium.ScreenSpaceEventType.Mouse_UP and popup a new ui window again and again, but the Cesium.ScreenSpaceEventType.Left_Click is fine.something happend for mouseup? thanks!
Sorry, my english is shit. the code snape as follow:
handler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_UP);
handler.setInputAction(
function (click) {
if(cesiumViewer.scene.mode !== Cesium.SceneMode.MORPHING)
{
var pickedObject = cesiumViewer.scene.pick(click.position);
if (cesiumViewer.scene.pickPositionSupported && Cesium.defined(pickedObject))
{
var id = pickedObject.primitive.id
if (id instanceof Cesium.Entity) {
$('#winParaman').window('open');//pop up window
//do somthing
}
}
}
}, Cesium.ScreenSpaceEventType.MOUSE_UP);