Giter Club home page Giter Club logo

Comments (12)

Huti avatar Huti commented on August 24, 2024

Hello jhard.
I had a similar problem with Windows safari.
UserAgent mozilla/5.0 (windows nt 6.2; wow64) applewebkit/534.57.2 (khtml, like gecko) version/5.1.7 safari/534.57.2
For this I was able to add a hack by adding the "mouseout" event listener
in the source it looks like this

if (/windows/.test(navigator.userAgent.toLowerCase()) && /safari/.test(navigator.userAgent.toLowerCase())) {  
  _html.addEventListener('mouseout', handleMouseleave);
}
_html.addEventListener('mouseleave', handleMouseleave);
_html.addEventListener('keydown', handleKeydown);

I put this to https://github.com/carlsednaoui/ouibounce/blob/master/source/ouibounce.js in the source file to test it and in to the attachOuiBounce() function

from ouibounce.

jhard avatar jhard commented on August 24, 2024

Hi Huti,

thank you, that looks good. Works fine for me now!
Cheers

from ouibounce.

carlsednaoui avatar carlsednaoui commented on August 24, 2024

@Huti, thanks for answering this β€”Β makes me wonder if we should switch back to the mouseout event listener. This was changed in v0.0.9: https://github.com/carlsednaoui/ouibounce/releases/tag/v0.0.9.

from ouibounce.

carlsednaoui avatar carlsednaoui commented on August 24, 2024

@Huti, I also just merged a few PR that fixed some bugs.

I just tested Ouibounce in Safari (on a Mac) and everything appears to work fine. Please let me know if you still have any issue on your end.

If so, we can look into it and fix them πŸ˜„

from ouibounce.

Huti avatar Huti commented on August 24, 2024

Hello @carlsednaoui, sorry for not answering sooner. I tried out the current version in git and sadly it still didn't wanted to work in Windows Safari.

from ouibounce.

carlsednaoui avatar carlsednaoui commented on August 24, 2024

Ahh, that's terrible!

Is the only way to fix this to append

if (/windows/.test(navigator.userAgent.toLowerCase()) && /safari/.test(navigator.userAgent.toLowerCase())) {  
  _html.addEventListener('mouseout', handleMouseleave);
}

?

Wondering if the event listener is just not getting attached. (If so, I have no idea why =/)

from ouibounce.

jhard avatar jhard commented on August 24, 2024

I've left the windows-test out, because it didn't work for me on OS X either, so I'm just testing for safari. Works for me.

from ouibounce.

carlsednaoui avatar carlsednaoui commented on August 24, 2024

@jhard if you remove the safari test, does v0.0.10 not work?

from ouibounce.

jhard avatar jhard commented on August 24, 2024

Oh, sorry, I haven't tested that yet, I was just commenting to let you know it's not a windows only-problem ;)

Will try that tomorrow at my work computer.

from ouibounce.

carlsednaoui avatar carlsednaoui commented on August 24, 2024

Thank you @jhard πŸ˜„

from ouibounce.

jhard avatar jhard commented on August 24, 2024

I've tested it with 0.0.10 right now on OS X in a VM with Safari 7.0 (9537.71) and it doesn't work correctly without the mouseout-event bound. Adding that makes it work great, though.

For now, I keep

if (/safari/.test(navigator.userAgent.toLowerCase())) {  
  _html.addEventListener('mouseout', handleMouseleave);
}

in there and am happily waiting for a perfect version.

from ouibounce.

carlsednaoui avatar carlsednaoui commented on August 24, 2024

As noted by @StevenChoo on #63

The problem only occurs on Chrome (currently v36) Windows, where as Chrome on Ubuntu, Firefox (Windows & Ubuntu) and Internet Explorer do not show any problems.

from ouibounce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.