In the playground "drag and drop" example, in function "onPointerDown()" the camera is detached from the canvas using following code
if (startingPoint) { // we need to disconnect camera from canvas
setTimeout(function () {
camera.detachControl(canvas);
}, 0);
// camera.detachControl(canvas);
}
If I remove the setTimeout() and do "detachControl" directly the code works fine on chrome and firefox but fails in IE
In IE the camera becomes a free look camera
Whats the significance of the "setTimeout()" function?