Git Product home page Git Product logo

Comments (7)

g4g4r1n avatar g4g4r1n commented on July 20, 2024 1

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.

JillElaine avatar JillElaine commented on July 20, 2024

Thank you for this. What OS and what version of Chrome?

from jquery-idletimeout.

g4g4r1n avatar g4g4r1n commented on July 20, 2024

Chrome 39.0.2171.95 m
windows 7

from jquery-idletimeout.

JillElaine avatar JillElaine commented on July 20, 2024

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.

JillElaine avatar JillElaine commented on July 20, 2024

Note added to README. Issue complete.

from jquery-idletimeout.

JillElaine avatar JillElaine commented on July 20, 2024

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.

g4g4r1n avatar g4g4r1n commented on July 20, 2024

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)

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.