Recognising Non-Element mouse clicks within the Pano skin

Q&A about the latest versions
Post Reply
exrenda
Posts: 1
Joined: Thu Jan 31, 2019 6:19 pm

Recognising Non-Element mouse clicks within the Pano skin

Post by exrenda » Fri Feb 01, 2019 6:43 pm

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

User avatar
Hopki
Gnome
Posts: 9371
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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

Post by Hopki » 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

360° Immersion
Posts: 7
Joined: Fri Apr 06, 2018 1:15 pm

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

Post by 360° Immersion » Mon May 13, 2019 1:46 am

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)

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests