Key controls require prior mouse input

  • I have arrow keys and keycodes enabled for zooming.

    Code
    <control keybaccelerate="0.1" keybspeed="10.0" keybfriction="0.9" keybfovchange="0.25" fovspeed="3.0" fovfriction="0.9" keycodesin="65,107" keycodesout="90,109" />


    They work, but only after the user has somehow moved the panorama with the mouse.

    Is it the expected behaviour? Or a problem of focus?

    Thanks.

  • Just for reference: it is indeed a matter of focus. The focus on the pano object can be set via Javascript with:

    document.getElementById("PanoObject").focus();


    where PanoObject is the id passed to the embed function.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!