Searching the forum regarding the correct use of the 'enable' and 'capture' properties for plugins didn't give me much, so I decided to create a new thread. I seem to be having problems with using the aforementioned properties and having mouse events bubble through to any hotspots that are underneath it.
The documentation mentions:
Quote.. when "enabled=true" and "capture=false" then the mouse events are sent to the plugin and also to all underlying objects ...
From searching the forum Klaus mentioned that with "underlying objects" he meant hotspots and the krpano object itself. Taking this explanation I would have assumed the following works, but it doesn't seem to.
My situation is as follows (unfortunately I cannot provide working examples):
Plugin
I want to have an action executed whenever someone 'onmouseover' the entire Krpano viewer. To do this I created the following plugin:
<plugin name="fsoverlay"
url="/img/misc/bg-grey-100.png"
align="lefttop"
x="0"
y="0"
width="2000"
height="2000"
alpha="0"
zorder="0"
handcursor="false"
capture="false"
enabled="true"
onover="fshover(true)"
onout="fshover(false)"
onhover="if(get(fullscreen), fshover(false))"
/>
Display More
Hotspots
Naturally I want hotspots in the viewer as well. As such, mouse events on the 'fshover' plugin needs to bubble through to all underlying objects. I would have assumed the above settings for the 'capture' and 'enabled' properties would work, but it does not.
Any help would be greatly appreciated! If you need more (or just a better) explanation, then let me know.