Moving the panorama with mouse on large hotspot

  • Hi guys, I´m new in Krpano and I would be grateful for your help. I´m trying to solve the problem of large hotspots and moving the panorama with mouse while mouse cursor is on hotspot. Magnus and AKSAN Bros solved this issue with enabled="true" capture="false", which works great.

    The second part of issue is following:

    Mouse on hotspot, clicking the mouse button and move – panorama is moving, release the mouse button out of hotspot – panorama stop moving.

    But now: the same example but when I release the mouse button within the hotspot area – external link is immediately activated – it´s not good. External link should be activated only on click, not during the moving after releasing mouse button.

    I think there is something in context of onmousedown event but I have no experiences with xml coding and after a week of trying and testing the code I´m really confused now. This is my code:

    <hotspot
    name="hotspot1"
    onclick="openurl('http://www... , _self);"
    url="hotspot1.jpg"
    onhover="showtext(Hotspot #1);"
    distorted="true"
    enabled="true"
    capture="false"
    ...
    />

    Appreciate any help ;) thanks, Bandu.

  • Hi,

    But now: the same example but when I release the mouse button within the hotspot area – external link is immediately activated – it´s not good.

    Sorry, but there must be something wrong in your example, when there is a mouse movement after the mouse button press, then the onclick will be NOT fired.

    Best regards,
    Klaus

  • Thank you for your interest, Klaus,
    if you will have a minute, please click on my pano example with mentioned problem:

    http://www.domainzone.sk/krpano_test/

    There are 2 hotspots with external link. If you just click on the hotspot, link is activated – that´s OK.
    But if the mouse cursor is on the hotspot area (Yellow Ferrari) and you hold the mouse button to move the pano (pano is moving), then you release the mouse button (your mouse cursor is still on hotspot area – Yellow Ferrari), the external link is immediately activated – that´s not OK because if you will have many large hotspots with external links, the experience with playing with pano will be messy.

    This is my xml for the hotspot:
    <hotspot
    name="spot1"
    onclick="openurl('http://www.google.com/', _blank);" url="virtualtourdata/graphics/spots/spot1.jpg"
    onhover="showtext(Yellow);"
    distorted="true"
    enabled="true"
    capture="false"
    ath="-20"
    atv="0"
    width="200"
    height="200"
    rx="0"
    ry="0"
    rz="0"
    />

    Have you ever solved this kind of issue before?

    Best regards,
    Bandu.

Participate now!

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