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

Change mouseout/mouseover by mouseleave/mouseenter #2

Open
NetVicious opened this issue Jan 13, 2017 · 0 comments
Open

Change mouseout/mouseover by mouseleave/mouseenter #2

NetVicious opened this issue Jan 13, 2017 · 0 comments

Comments

@NetVicious
Copy link

If the element which raises the dropdown menu has inside an image or other element it raises the mouseout event and the dropdown menu hides

This can be easily fixed changing the events mouseout/mouseover to mouseleave/mouseenter in the droplicious.js

Before

$$("a.drops").invoke('observe', 'mousemove', this.linkMouseOver.bind(this));
$$("a.drops").invoke('observe', 'mouseout', this.linkMouseOut.bind(this));
		
$$("ul.licious").invoke('observe', 'mousemove', this.submenuMouseOver.bind(this));
$$("ul.licious").invoke('observe', 'mouseout', this.submenuMouseOut.bind(this));

After

$$("a.drops").invoke('observe', 'mouseenter', this.linkMouseOver.bind(this));
$$("a.drops").invoke('observe', 'mouseleave', this.linkMouseOut.bind(this));
		
$$("ul.licious").invoke('observe', 'mouseenter', this.submenuMouseOver.bind(this));
$$("ul.licious").invoke('observe', 'mouseleave', this.submenuMouseOut.bind(this));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant