Conversation
Hi indyplanets. Here are the changes I made re: window edge detect. Would you mind having a looksie to see how I could get this to play nice with .hoverIntent? Thanks!
|
@daemonhunt Did you ever get edge detection for windows working with Hover Intent? |
|
No sorry, I didn't. I still haven't heard back from the developer, and still haven't figured it out myself. I have it running as is on my production site as is:
|
|
@daemonhunt I believe I have a solution. Essentially, you were trying to get the width of an unordered list that was still invisible, so it would essentially return 0 all the time. See line 49: daemonhunt@0c17b50#diff-139b575467aa22281fca8dfc0974fcbdR49 So, rather than running this outside of showMenu I decided to run this inside showMenu but on the parent UL. So, as you hover over an element with a class of "item-with-ul" the script would determine if the subsequent menu will show up off stage and add a class. So, my showMenu looks something like this: Since we're setting a min-width on LIs the 320 you see (rather than width) is the width of two L |
Hi, please suggest a way I can get this implementation of window edge detection to play nice with .hoverIntent turned on. Many thanks!