You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, November 21st 2018, 9:34pm

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

2

Wednesday, November 28th 2018, 12:48pm

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:

Source code

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


Best regards,
Klaus

3

Wednesday, November 28th 2018, 9:06pm

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:

Source code

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


Best regards,
Klaus