possible bug in "MouseMove" ScreenSpaceEvent in Firefox

Hi,

I was trying to run the following code in the Cesium-Sandcastle in Firefox (version 36.0.4). when i move the mouse over the aircraft model object, it can not be picked correctly. You can see check this problem in the console window.
But in Google Chrome it works fine.

//------------------------ Javascript Code----------------------------------//

var viewer = new Cesium.Viewer('cesiumContainer', {
    infoBox : false,
    selectionIndicator : false
});

function createModel(url, height) {
    viewer.entities.removeAll();

    var position = Cesium.Cartesian3.fromDegrees(-123.0744619, 44.0503706, height);
    var heading = Cesium.Math.toRadians(135);
    var pitch = 0;
    var roll = 0;
    var orientation = Cesium.Transforms.headingPitchRollQuaternion(position, heading, pitch, roll);

    var entity = viewer.entities.add({
        name : url,
        position : position,
        orientation : orientation,
        model : {
            uri : url,
            minimumPixelSize : 128
        }
    });
    viewer.trackedEntity = entity;
}

createModel('../../SampleData/models/CesiumAir/Cesium_Air.bgltf', 5000.0);

var eventHandler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);

eventHandler.setInputAction(function(event){
    var object = viewer.scene.pick(event.endPosition);
    // print the picked object...
    console.log(object);
}, Cesium.ScreenSpaceEventType.MOUSE_MOVE);

//-------------------------------------------------------------------------//
thanks,
Zhihang

Hello Zhihang,

Try updating Firefox. I ran this code in Firefox version 39.0 and it seemed to work fine.

Best,

Hannah

Hi Hannah,

thanks very much for your reply. I've updated my firefox to 39.0. But the problem is still there.

You may need to move your mouse cursor several times, and keep pointing to the Aircraft model. Then you can see the printed info in the console window like below:

..
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
undefined
[object Object]
[object Object]
undefined
[object Object]
...

Some times, the returned value is not object but undefined.

Zhihang

There’s definitely something strange happening here. I was able to reproduce the problem and have submitted a bug to GitHub so we remember to look further into it: https://github.com/AnalyticalGraphicsInc/cesium/issues/2942