UI component raise the Cesium.ScreenSpaceEventType.Mouse_UP event

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:

                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);

Hi! Can you post a code snippet that runs in sandcastle? That will make it easier for us to reproduce your error.


  • Rachel