Skip to content

Serious BUG: Clicking fast on next causes anno.js to malfunction #61

@ghost

Description

Clicking fast and multiple times on the Next button causes AnnoJs to misbehave (dosn't closes the dialogs) and this error is reported:
Can't hideAnno() for '" + this.target + "' when @_annoElem ") + "is null. Did you call hideAnno() twice?

image

I managed to reproduce it in the official example click next/back fast / multiple times.

Quick Fix is to remove the transition in .anno {} and to remove the setTimeout to remove an item in hideAnno().

A proper fix would be probably to animate it with JQuery and wait until the transition is done before opening the new one and closing the existing, another to make the steps async or to spend more time timing the animation and the steps but feels kind of hacky because it depends on too many things.

I can do a proper fix if pull requests are still reviewed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions