Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double mouseenter event causes flickering #15

Closed
marcingorecki opened this issue Feb 3, 2015 · 1 comment
Closed

Double mouseenter event causes flickering #15

marcingorecki opened this issue Feb 3, 2015 · 1 comment
Assignees
Labels

Comments

@marcingorecki
Copy link

Hi,

In current (0.6.0) the mouseleave anonymous event is registered twice - lines 174 and 181. This causes a lot of mouseenter events to be generated. This is not visible for simple balloons, but impacts functionality when you put a lot of HTML into it (including lists, graphics and links) as the showBalloon function is called every time mouse is moved inside the balloon.

Removing 2nd event registration (lines 181-184) does not impact the functionality and removes the problem of multiple

.on("mouseenter", function(e) {
          $balloon.stop(true, true);
          $target.showBalloon();
        })

You will need to add .stop in the first event (line 175)

@urin urin added the bug label Feb 10, 2015
@urin urin self-assigned this Feb 13, 2015
urin added a commit that referenced this issue Feb 14, 2015
@urin
Copy link
Owner

urin commented Feb 14, 2015

Could you check urin/jquery.balloon.js at issue15?
Updated to avoid multiple .showBalloon() execution.
If the problem is solved, I will merge this change to master.

@urin urin closed this as completed in 68b3bda Apr 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants