Skip to content

Annotator hover behaviour is too sticky #222

@orientalperil

Description

@orientalperil

I noticed an issue when using Annotator. If I have a page with multiple annotations such as the canonical demo page, http://okfnlabs.org/annotator/demo/, and quickly move my mouse cursor between annotations, the popup stays on the first annotation.

I was able to narrow this problem down to this line: https://github.com/okfn/annotator/blob/16e3331e6392b085225ca0d0bb4d6333ae881d97/src/annotator.coffee#L496

It seems that Annotator checks if the cursor is over an annotation and if it is not, the popup gets hidden. However it seems that Annotator does not check if the annotation the mouse cursor is hovering over is the same as the annotation that it started on.

Maybe this behaviour is on purpose, but it is definitely confusing. In my opinion, if I move the cursor to another annotation I should see the popup associated with that annotation and the popup of the previously hovered over annotation should be hidden.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions