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

Consider clearTimeout if mouseEnter parent and take submenu hover events also into consideration #65

Closed
wants to merge 6 commits into from

Conversation

fatcrobat
Copy link

I figured out, that the timeout was not cleared correctly, if other parent element is entered by mouse.
dropdown-menus should also be taken into hover consideration, otherwise dropdown will be closed, if we switch from one dropdown to another and timeout did not finish before.

clearTimeout if parent element is hovered
clearTimeout if dropdown-menu is hovered, setTimeout again if dropdown-menu hovered out
clearTimeout if parent element is hovered
clearTimeout if dropdown-menu is hovered, setTimeout again if dropdown-menu hovered out
@CWSpear
Copy link
Collaborator

CWSpear commented Jul 7, 2014

This full-on reverses some changes I specifically did to fix a specific change. What really needs to happen with this project is some tests. But I have zero experience with the kind of tests it would need.

So, what exactly is the issue here, and how/why does it solve it? I don't quite understand what you're describing in your comment.

@fatcrobat
Copy link
Author

Lets explain with a simple flowchart:

flowchart

Rico Kaltofen added 2 commits August 4, 2014 10:14
…vide a shorter timeout on initial opening dropdowns

- added delay-switch timeout (data-delay-switch as data-attribute) to provide a short timeout on switching menu items, when dropdowns are already open
- better submenu and nested submenu handling
@fatcrobat
Copy link
Author

Hey there, i made some small timeout improvements, for opening dropdowns and switching between open submenus. Did my flowchart help you understanding my thoughts?

@CWSpear
Copy link
Collaborator

CWSpear commented Aug 4, 2014

  1. I don't fully understand the flowchart (but very nice effort).
  2. I don't fully understand what issue this solves. You state, "that the timeout was not cleared correctly, if other parent element is entered by mouse." What is this doing and why is it bad?
  3. This is a major change that changes a lot of code and attempts to do a lot of other things than attack the one issue (which I still don't understand and no one else has commented on/spoken up that they're bothered by).
  4. It's apparently not been merged from upstream, and I couldn't even automatically merge it if I wanted to.
  5. No tests, but that's not all on you (see Testing Suite #69).

@CWSpear
Copy link
Collaborator

CWSpear commented Sep 29, 2014

Closing for inactivity and failure to address my concerns.

@CWSpear CWSpear closed this Sep 29, 2014
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

Successfully merging this pull request may close these issues.

2 participants