Close polygon iframe hotspot by clicking on screen tint element?

Q&A about the latest versions
Post Reply
User avatar
KRitchie
Posts: 59
Joined: Tue Apr 21, 2020 10:59 am
Location: Philadelphia, PA

I am using polygon hotspots to open URL's in iframes using the tutorial Hopki sent me: viewtopic.php?f=13&t=14298&fbclid=IwAR0 ... Ago6qmD8nI

I have the close button working to close the URL and turn off the screen tint element. I also want to be able to click on the screen tint anywhere outside the iframe to close the iframe and turn off the screen tint. This is how the YouTube pop up functions. I have searched all through the skin and cannot find how to make this work.

Attached is a sample project. Any ideas??

Thanks

- Kevin
Attachments
iframe_close.zip
(591.99 KiB) Downloaded 141 times
User avatar
Hopki
Gnome
Posts: 13028
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Kevin,
Have a look at the close button and look at the actions.
Then apply them to the screen tint.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
KRitchie
Posts: 59
Joined: Tue Apr 21, 2020 10:59 am
Location: Philadelphia, PA

Thanks Hopki, I figured out it was a scaling issue with the container scale vs video element scale inside of it. I kept video element at 100%x100% and did scaling on the container and that fixed the issue.

- Kevin
Post Reply