Comments (12)
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.
Hi Huti,
thank you, that looks good. Works fine for me now!
Cheers
from ouibounce.
@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.
@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.
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.
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.
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.
@jhard if you remove the safari test, does v0.0.10 not work?
from ouibounce.
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.
Thank you @jhard π
from ouibounce.
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.
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)
- Firefox triggering exit intent when http warning message in e-mail field HOT 2
- What is the purpose of checking the keycode 76? HOT 1
- where are model inspiration assets?
- cookieExpire is not working HOT 3
- Mobile support HOT 3
- Using without passing element doesn't work HOT 1
- Can I use decimal values for cookieExpire?
- Add DisableOnce function [RFC] HOT 1
- custom exit popup with ouibounce
- 'Select' element triggering model HOT 2
- Bootstrap - Modal shadow doesn't shown
- vanilla javascript might not be working HOT 1
- Initialization using minified version HOT 1
- Sensitivity not triggering
- using ouibounce with a 3rd party script, won't show HOT 1
- Ouibounce script working irregularly
- Is this still being maintained? HOT 1
- ouibounce is used on donaldjtrump.com
- Unable to access ouibounce function in a static .js file
- I do not recommend! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ouibounce.