<hotspot capture="true"/> + "panorama drag" at the same time?

  • Hi,


    I have a global click event and I want this to be triggered only when clicking DIRECTLY on the panorama.

    -> NOT when clicking on the hotspot (or layer) and bypassing the click event to the panorama.


    The problem is, sometime I have lots of hotspot images ("capture=true" and "onclick" applied) and sometimes these hotspots image hide the screen (especially when viewing on small mobile devices), which blocks users to pan the panorama.


    If I apply "capture=false" to hotspots and click the hotspot, the global click event is triggered too (which I don't want).


    Is there any way to drag the panorama in this case?


    Cheers,

    hyung

    • New
    • Official Post

    Hi,

    I think that might be only possible with additional custom code.

    E.g. in the hotspot onclick set a custom skipclickevent variable:

    Code
    onclick="skipclickevent=true; ...code..."


    in the global events, process the actual onclick code only when this is not set:

    Code
    onclick="if(skipclickevent==true, skipclickevent=false , ...code... );"

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!