Disable mousewheel on site but enable it in fullscreen mode

  • Hi there,

    i disabled the mousewheel on my pano with the embedpano paramter mwheel:false.
    I would like to enable it again when fullscreen mode is active.
    Is there a way to realize that?

    Thanks *smile*
    JoeSakic

  • Hi,

    yes - the html5 viewer has a 'control.disablewheel' setting for disabling/enabling mouse-wheel support (this one will be internally also set when using the mwheel embedding parameter).

    So it would be possible to enable it again for fullscreen mode this way:

    Code
    <events name="mwheel_fullscreen" keep="true"
      onenterfullscreen="set(control.disablewheel, false);"
      onexitfullscreen="set(control.disablewheel, true);"
      />

    Best regards,
    Klaus

  • Funktioniert einwandfrei, herzlichen Dank! *smile*

    Hi,

    yes - the html5 viewer has a 'control.disablewheel' setting for disabling/enabling mouse-wheel support (this one will be internally also set when using the mwheel embedding parameter).

    So it would be possible to enable it again for fullscreen mode this way:

    Code
    <events name="mwheel_fullscreen" keep="true" 
      onenterfullscreen="set(control.disablewheel, false);"
      onexitfullscreen="set(control.disablewheel, true);"
      />

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!