Skip to content
This repository was archived by the owner on Sep 6, 2024. It is now read-only.
This repository was archived by the owner on Sep 6, 2024. It is now read-only.

Persistent HoverTooltip after annotation is deleted #39

@RonyKordahi

Description

@RonyKordahi

I was trying out the hover-tooltip plugin, in the hopes of rigging a little solution together since custom widgets aren't functional in React yet annotorious-openseadragon (#179), and I ran into some bugs both when testing it in JavaScript (cloned the annotorious-v2-plugins repo and ran it) and in React.

The bugs are similar in both a JavaScript environment and in the React environment. Though React takes them a step further.

Bugs in JavaScript:

  • Selecting an annotation makes the tooltip freeze in place inside the annotation. As long as the cursor is hovering over the annotation, the tooltip is visible. The good news is the tooltip disappears when the cursor exits the annotation.
  • Deleting an annotation while hovering over it causes the tooltip to remain in it's last position on the page permanently.

Bugs in React:

  • Selecting an annotation makes the tooltip freeze in place inside the annotation. The tooltip never disappears even when the cursor exits the annotation. Selecting the annotation again after exiting and re-entering it places another tooltip. An infinite number of "stuck" tooltips can be created this way.
  • Deleting an annotation does not get rid of the "stuck" tooltips.
  • Deleting an annotation while hovering over it causes the tooltip to remain in it's last position on the page permanently. As an added bonus, this also throws 2 error messages (screenshot below).

image

EDIT: Modified link name for issue 179
EDIT 2: I forgot to mention, I have disableEditor: true and I'm deleting the annotations with the DELETE key on my keyboard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions