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

activation event to click makes bubble disappear to easy #9

Open
GoogleCodeExporter opened this issue Sep 17, 2015 · 5 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. set bindShow to click
2. click your link, img, ...
3. move the mouse from the link to the bubble

What is the expected output? What do you see instead?
The bubble should stay but it fades away as if I had moved the mouse away.

What version of the product are you using? On what operating system?
1.0.6


Original issue reported on code.google.com by [email protected] on 19 May 2010 at 9:52

@GoogleCodeExporter
Copy link
Author

I changed line 160 and following to this and it seems to work fine:


    // handle mouseover and mouseout events
    function show_handler() {
        if (_timeoutAnimate) {
            clearTimeout(_timeoutAnimate);
        }
        if (_options.delayShow === 0) {
            _Show();
        } else {
            _timeoutAnimate = setTimeout(function() {
                _Show();
            }, _options.delayShow);
        }
        return false;
    }

    function hide_handler() {
        if (_timeoutAnimate) {
            clearTimeout(_timeoutAnimate);
        }
        if (_options.delayHide === 0) {
            _Hide();
        } else {
            _timeoutAnimate = setTimeout(function() {
                _Hide();
            }, _options.delayHide);
        }
        return false;
    }

    $(_wrapper.get(0)).bind('mouseover', show_handler).bind('mouseout', hide_handler);
    $(this.get(0)).bind(_calc.bindShow, show_handler).bind(_calc.bindHide, hide_handler);

Original comment by [email protected] on 19 May 2010 at 10:04

@GoogleCodeExporter
Copy link
Author

Thanks!

You may not necessarily want to always hide your tip on mouseout, so you could 
do the 
following:

_wrapper.bind('mouseover', show_handler).bind(_calc.bindHide, hide_handler);
_this.bind(_calc.bindShow, show_handler).bind(_calc.bindHide, hide_handler);

Original comment by [email protected] on 20 May 2010 at 1:07

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

the buggy behaviour is visible on Firefox (16.02 64bit for linux). On Chrome 
(23.0.1271.64 64bit for linux) everything works perfectly. I'm going to apply 
the suggested patch and to report how it goes on both the browsers.

Original comment by [email protected] on 23 Nov 2012 at 9:43

@GoogleCodeExporter
Copy link
Author

the patch with uhleeka additional code works. For people using mouse out I 
suggest to increase the delayHide to 1500;

Thank you guys
Dam

Original comment by [email protected] on 23 Nov 2012 at 10:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant