When layer is clicked, if capture is set to false, even a single click will be considered a double-click. I think it's logical not to trigger the ondoubleclick event.
Trigger ondoubleclick event
-
- Bug
- Fixed
-
zhitongjia -
November 25, 2024 at 1:37 PM
-
-
Hi,
yes indeed. i also see what you mention.
But also if i put capture false, onsingleclick and ondoubleclick (attributes) seem not to work both, onclick does work.and when i doubleclick on the layer, the ondoubleclick event is called twice and the ondoubleclick attribute not
I think this is a bug (?)Tuur
-
- Official Post
Hi,
right, this is a bug.
The not working layer single/double-clicks events and the global doubleclick event have the same reason.
Both is fixed now for version 1.22.3.Best regards,
Klaus -
klaus.krpano
November 25, 2024 at 9:13 PM Added the label Bug -
klaus.krpano
November 25, 2024 at 9:13 PM Added the label Fixed -
klaus.krpano The events.onsingleclick event is triggered after a certain period of time following a click on the screen. What could be the reason for this? Forexample 0.5 seconds later.
-
- Official Post
Hi,
the double-click detector uses a timeout of 0.3 seconds.
When there is a second click within that time, the double-click event will be triggered. Otherwise the single-click event.
This is also explained in the documentation:
krpano.com - Documentation - XML Reference
For instant click events, the normal 'onclick' event can be used.
Best regards,
Klaus
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!