Page 1 of 1

Floorplan: disable mousewheel zoom or limit zoom level

Posted: Wed Jan 04, 2023 12:53 pm
by skyfocus
Hi,

I've watched the tutorial https://ggnome.com/gg_webinars/pano2vr- ... oor-plans/ and I try to implement a scrolling Floor-plan in my latest tour.
Before this, I made a floor-plan myself with buttons that scroll a larger map within a masked container.
Example: https://skynl.eu/Alkenhaer

That works okay, but I noticed that users are used to click and drag the mouse on a floor-plan to scroll around instead of clicking directional buttons like you would do on a Google map. I did not find an action that would do that with an image in the skin editor.

When I stumbled on the above video I experimented with the floor-plan option I never have used before. I created a Floor-plan and I'm using that Floor-plan in the skin on the location of a Map element. I have switched off "Simple floor-plan" to be able to drag the floor-plan around, so far so good.
But I'm also able to zoom in and out of the floor-plan using buttons (when UI is switched on) or the mouse-wheel, but when zooming out completely the floor-plan is very tiny and not usable and I can see beyond the floor-plan image.
Is there a way to disable the mouse-wheel zooming just like it is possible to remove the zoom buttons with "UI" switched off ?
Or even a better approach: to set a zoom limit or movement bounds so it is not possible to zoom out further then the floor-plan fits in the Map element. I noticed that when I drag the image around (to scroll) the limits are there and I cannot drag the floor-plan beyond the borders of the image is I expected, but zooming out has limits that are far more further.

Any hints or tips would be welcome.

Regards,

Arjan