Sie sind nicht angemeldet.

1

Freitag, 2. August 2013, 13:32

OnClick event falsely fired after dragging panorama

Hello,

we're using the latest version of krpano, and experiencing a problem that any sort of panorama panning (either drag2d or moveto) fires an onClick() event, though no actual click was done. For some reason it makes onMouseUp equal to onClick.

Do we understand it right, that it's a bug?

Thanks in advance

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

2

Freitag, 2. August 2013, 13:43

I suppose it's a mistake somewhere in your code. Can you show your xml? It's hard to say without seeing the code.
Regards,

Alexey

3

Montag, 5. August 2013, 09:42

The code goes just as simple as

<events onclick="trace('click!');" />

or something similar.

If the dragging of the panorama is short enough, then the mouseup triggers the onClick event. Seems like the time threshold between the mousedown and mouseup, which still counts as a click, is set for a too large value.

4

Freitag, 9. August 2013, 22:02

Hi, that problem was fixed now in version 1.16.6:
http://krpano.com/news/#releasenotes1166