annotorious-openseadragon icon indicating copy to clipboard operation
annotorious-openseadragon copied to clipboard

Annotation isn't draggable if drawing enabled

Open alexeykurbako opened this issue 2 years ago • 5 comments

Hi, After migration to OSD version 4.0.0 and Annotoriuos v.2.7.10 existing annotations became undraggable if drawing mode enabled, but everything is fine it's disabled. I tried to debug it a bit and found out that it doesn't raise clickAnnotation event in draw mode. The second problem happens if I try to click in just random place and draw annotation after it so it doesn't draw anything, but after disabling and enabling draw mode everything is fine. I think both issues are related but don't understand why they happen and how to solve them.

anno-issue

OSD version: 4.0.0 Annotoriuos version: 2.7.10 React version: 17.0.2 OS: Ubuntu 20.04.4 Browser: Google Chrome Version 102.0.5005.61 (Official Build) (64-bit)

alexeykurbako avatar Apr 06 '23 10:04 alexeykurbako

Yikes, thanks for reporting. There seem to be a couple of changes in OSD 4.0 that broke Annotorious/OSD interop. I've been working out some of them, but it might still take a while until I can iron them all out. I'll put that one on the list!

rsimon avatar Apr 06 '23 10:04 rsimon

@rsimon Thank you for quick response. I will wait for you to fix this problem, but for now will stay on the older version of OSD and Annotoriuos

alexeykurbako avatar Apr 06 '23 10:04 alexeykurbako

@rsimon Hey. Do you have any progress with this issue?

alexeykurbako avatar Nov 22 '23 11:11 alexeykurbako

@rsimon

alexeykurbako avatar Dec 07 '23 08:12 alexeykurbako

Hi, sorry - this completely dropped off my radar. I can see the problem. But I'm afraid this isn't going to be fixed in Annotorious v2.x any more. Event handling has become so convoluted, with so many edge cases, that one of the recent changes seems to have made this pretty much impossible. Selection is completely disabled while drawing is active.

Annotorious v.3 is almost ready to go - a complete rewrite from scratch, exactly because of legacy problems like this. So a solution is one the horizon, I guess. Sorry for not having better news at this point.

rsimon avatar Dec 07 '23 08:12 rsimon