biigle / core

:large_blue_circle: Application core of BIIGLE
https://biigle.de
GNU General Public License v3.0
12 stars 15 forks source link

Prevent double clicks for point annotations #896

Closed dlangenk closed 1 month ago

dlangenk commented 2 months ago

fixes #491

dlangenk commented 2 months ago

If i throttle my connection speed I also see that problem. Before I simply could not reproduce that.

mzur commented 2 months ago

Strange, it should not have anything to do with the connection speed. This is purely client-side. You have to click faster than the 400 ms for this to happen.

dlangenk commented 2 months ago

I guess now the point is removed after all, BUT the map is also dragged after a double click. I also added the distance to last annotation feature.

dlangenk commented 1 month ago

Pretty sure that I actually got a distance and no error, but I'll have a look at this. No LLM fail😉, but rather StackOverflow

dlangenk commented 1 month ago

Don't know why the console error slipped. Now it works, without any errors ;-) Please have a look if the position of the computeDistance function is correct or if it should be somewhere else.