annotorious / annotorious-openseadragon

An OpenSeadragon plugin for annotating high-res zoomable images
https://annotorious.github.io
BSD 3-Clause "New" or "Revised" License
124 stars 42 forks source link

TypeError thrown on unclear conditions #140

Closed EmKarr closed 2 years ago

EmKarr commented 2 years ago

Sometimes this error is thrown in OSD-annotorious, alas the circumstances are not completely clear, probably happens when an area outside an annotation is clicked:

Uncaught TypeError: this.hoveredShape is undefined Ah OSDAnnotationLayer.js:293 getHandler eventsource.js:174 raiseEvent eventsource.js:196 onCanvasClick viewer.js:2894 delegate openseadragon.js:1410 updatePointerUp mousetracker.js:3505 handlePointerUp mousetracker.js:2652 onPointerUp mousetracker.js:2601 pointerup mousetracker.js:251 addEvent openseadragon.js:2135 startTracking mousetracker.js:1468 setTracking mousetracker.js:342 MouseTracker mousetracker.js:296 Viewer viewer.js:284 OpenSeadragon openseadragon.js:781 ...

Best, Michael

rsimon commented 2 years ago

Moved the issue, since this seems to pertain to the OpenSeadragon version.

rsimon commented 2 years ago

Duplicate of #136, was fixed already in commit 8318366be74c6b83b450b6f8cdae4bb3f5c38aff. Fix will go live with the next release.