how to disable full screen of images on double click

arvind_ari
Posts: 7
Joined: Thu Jan 25, 2018 8:31 am

how to disable full screen of images on double click

Postby arvind_ari » Mon May 14, 2018 1:57 pm

Hello
How I can disable the fullscreen view of the images on double click on the Pano Images.
I want to disable this.
On second level panos i have implemented hotspot clicked event. on click a modal box opens with the details but on fullscreen of the PANO IMAGE the click events inside the modal box did not work and work well without the full screen on click of the hotspot.

Thanks,

User avatar
rroux
ForgeJS Team
Posts: 166
Joined: Wed Oct 26, 2016 12:19 pm

Re: how to disable full screen of images on double click

Postby rroux » Thu May 17, 2018 12:48 pm

Hello arvind_ari,

To disable the fullscreen on double click, you'll have to specify the behavior of the pointer controller to override the default option.
You can add this controllers config object at the root of your config.json file.

  1. "controllers":
  2. {
  3.     "instances":
  4.     [
  5.         {
  6.             "uid": "pointer",
  7.             "type": "pointer",
  8.             "options":
  9.             {
  10.                 "fullscreen": false
  11.             }
  12.         }
  13.     ]
  14. }


Hope this helps, have a nice day!
- Raphaël

arvind_ari
Posts: 7
Joined: Thu Jan 25, 2018 8:31 am

Re: how to disable full screen of images on double click

Postby arvind_ari » Mon May 21, 2018 2:22 pm

Thanks rroux
It works for me.

Who is online

Users browsing this forum: No registered users and 2 guests