Skip to content
This repository was archived by the owner on Apr 2, 2023. It is now read-only.

Commit f24032c

Browse files
author
Rainer Simon
committed
Trying to get coherent behavior concerning issue #68
1 parent 98e1b43 commit f24032c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/mediatypes/image/image.viewer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ annotorious.mediatypes.image.Viewer.prototype.highlightAnnotation = function(opt
151151
this._popup.startHideTimer();
152152

153153
this._redraw();
154+
this._eventsEnabled = true;
154155
}
155156

156157
/**
@@ -210,7 +211,7 @@ annotorious.mediatypes.image.Viewer.prototype._onMouseMove = function(event) {
210211

211212
var self = this;
212213
if (topAnnotation) {
213-
this._keepHighlighted = false;
214+
this._keepHighlighted = topAnnotation == this._currentAnnotation;
214215

215216
if (!this._currentAnnotation) {
216217
// Mouse moved into annotation from empty space - highlight immediately

0 commit comments

Comments
 (0)