Git Product home page Git Product logo

activity-detector's People

Contributors

atabel avatar npmcdn-to-unpkg-bot avatar pladaria avatar sergiomorchon avatar spantaleev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

activity-detector's Issues

Cannot enable Universal Rendering in projects using activity-detector

activity-detector is only meaningful when running code in a browser, so for a project that uses Universal Rendering (Server Side Rendering) it should not be part of the server side code path.

The problem is that activity-detector tries to unsafely access the document object already during import, which breaks the app before any conditional code paths can be selected. And it is currently not possible to conditionally import modules.

Review mousemove behavior

mousemove shouldn't change the state to active if the window is not focused. Or, at least, this feature should be optional.

Does not support cross-tab

If we have the same app in 2 tabs it will not reset the timer if I'm using it in only one tab.
We should probably keep the timer in local storage or...

timeToIdle of 30 minutes not working

Is there an upper limit of some kind to timetoIdle? I'm using this to implement an auto logout. In tests at one minute or less, it works great. But when I set timeToIdle to 1800000, it fires the idle callback after about 10 seconds.

iOS VoiceOver

Hi,

We're having some problems on iOS. The main problem is that activity-detector is not detecting than a user is navigating when VoiceOver is enabled.
Someone has experimented the same issue?

Cheers!

IE8 compatibility

As much as I dislike doing that, I need to use your lib (thanks for the work) with IE8.
There's not much required to make it happen, only issue is lack of addEventListener.
I am inclined to PR a fix.

Typo in `webpack.config.js`

In the file webpack.config.js, the output.library value should be ActivityDetector, not activityDetector.

Remove `blur` from inactivityEvents

What's the best way to remove 'blur' from the inactivityEvents array?

Would you be willing to accept a PR that adds this feature? Maybe via inactivityEvents: undefined?

I'd prefer to not "short-circuit" the timeToIdle timeout.

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.