Comments (7)
possible solution for the chrome bug:
var mouseX, mouseY;
activityDetector = function () {
$('body').on(opts.activityEvents, function (e) {
if(e.type == 'mousemove') {
if(e.clientX == mouseX && e.clientY == mouseY){
//mouse has not really moved, chrome mousemove bug
return;
}
mouseX = e.clientX;
mouseY = e.clientY;
}
if (!opts.enableDialog || (opts.enableDialog && isDialogOpen() !== true)) {
startIdleTimer();
}
});
};
from jquery-idletimeout.
Thank you for this. What OS and what version of Chrome?
from jquery-idletimeout.
Chrome 39.0.2171.95 m
windows 7
from jquery-idletimeout.
I do not experience the mousemove bug in the same version of Chrome on Linux. I see other references to this Chrome bug on Windows 7 & XP, but not with Chrome and Mac OS. I appreciate your provided possible solution, but I'm hesitant to add overhead and complexity to the code.
I hope that Google and Windows will fix this bug. If it occurs in all combinations of Chrome + Windows, it's a BIG bug! It would create havoc with any idletimers that register the mousemove event as activity, and perhaps explains why the mousemove event is not often included as 'activity' on banking sites, etc.
At this point, I'll add a note about the bug to the README (soon) and include your possible solution. Thank you for reporting this.
from jquery-idletimeout.
Note added to README. Issue complete.
from jquery-idletimeout.
g4g4r1n, just wanted to thank you for your report on the apparent
mousemove bug in Chrome. I've now added your report and possible
solution to the README for the plugin.
Jill Elaine
On 01/13/2015 10:03 AM, g4g4r1n wrote:
Chrome 39.0.2171.95 m
windows 7—
Reply to this email directly or view it on GitHub
#13 (comment).
from jquery-idletimeout.
you are most welcome. I am very happy with the plugin, It is exactly what we were looking for the project. thank you!
from jquery-idletimeout.
Related Issues (20)
- Is there a way to change the timeout duration at runtime? HOT 5
- Dependency on jQuery UI for pop up. HOT 1
- Session time out counter show NAN HOT 15
- iframe inactivity detection bug HOT 2
- Accessing the $.fn.idleTimeout() after it was initialized HOT 1
- customCallback repeating call if redirectUrl: false HOT 2
- IE recursive loop crash. HOT 7
- Does not function if the page is having frameset HOT 2
- Cannot find any error handling callback HOT 2
- Session lost when there is a pending AJAX request HOT 7
- Unable to change dialogue on buttons, HOT 19
- Configuration issue - activityEvents override without mousemove HOT 7
- Error message only on IE 11 on Windows 2012 R2 - Solved HOT 12
- Releasing jquery-idleTimeout under MIT license HOT 7
- Logged out of iframes, not main page HOT 4
- IE 11 Tabs or windows not communicating when over 2 tabs. HOT 2
- IE-11 windows 10 multiple logout calls HOT 1
- How much of jquery-ui do you need to bundle? HOT 3
- Uncaught TypeError: $(...).idleTimeout is not a function HOT 1
- store.js HOT 6
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 jquery-idletimeout.