Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rainer Simon committed Nov 5, 2021
1 parent 8ef1960 commit a2012ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/OSDAnnotationLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ export class AnnotationLayer extends EventEmitter {
if (shape?.annotation !== this.hoveredShape?.annotation) {
if (this.hoveredShape) {
this.viewer.gestureSettingsByDeviceType('mouse').clickToZoom = zoomGesture;
removeClass(this.hoveredShape, 'hover');

const element = this.hoveredShape.element || this.hoveredShape;
removeClass(element, 'hover');

this.emit('mouseLeaveAnnotation', this.hoveredShape.annotation, this.hoveredShape);
}

Expand Down

0 comments on commit a2012ef

Please sign in to comment.