Page 1 of 1

Recognising Non-Element mouse clicks within the Pano skin

Posted: Fri Feb 01, 2019 6:43 pm
by exrenda
Can any of you Pano Guru's point out if I'm missing something.
I would like to be able to see a mouse event as actionable when panning (and if possible when changing FOV).
The scenario is that I would like to close any open menus (skin elements > visibility=false) when the user performs a 'click/drag/scroll/pinch/swipe' mouse event on the raw pano.
I hope I've explained that OK as I'm sure I must be missing something basic in the skin controls or the API.
All suggestions welcome (within reason) :wink:
Colin

Re: Recognising Non-Element mouse clicks within the Pano skin

Posted: Mon Feb 11, 2019 10:25 pm
by Hopki
Hi Colin,
The only thing I can think of is any popup or open element also opens an active container.
The container although transparent will have the action to close all popups.
So the first time you click to drag the pano you click the container which will hide itself as well as all popups.
Regards,
Hopki

Re: Recognising Non-Element mouse clicks within the Pano skin

Posted: Mon May 13, 2019 1:46 am
by 360° Immersion
Hopki wrote: Mon Feb 11, 2019 10:25 pm Hi Colin,
The only thing I can think of is any popup or open element also opens an active container.
The container although transparent will have the action to close all popups.
So the first time you click to drag the pano you click the container which will hide itself as well as all popups.
Regards,
Hopki
This worked for me but I found that I needed it to be a transparent rectangle below the popup (with the action Hide Element _parent)