Comments (5)
@bgold0 Could you figure out which browser event we would should listen to? Then I can imagine also resetting idleTime when scrolling overflow.
from browser-interaction-time.
The events in the link are the events we currently listen to:
https://github.com/atlassian/browser-interaction-time/blob/master/src/browser-interaction-time.ts#L50-L58
from browser-interaction-time.
@meandmax I think you should check for scrolling on any child element as well. Like so:
document.addEventListener('scroll', this.aFunction, true);
Notice the , true)
at the end.
I was able to solve it by adding my own listener and using browserInteractionTime.resetIdleTime()
but knowing if a user scrolls on anything inside the window would probably be more efficient.
from browser-interaction-time.
I totally agree! That's a good feature and I will add that, I could think of 2 options API wise:
- We allow passing an element or an array of elements where we will attach listeners to.
- We use the option that you said above, I guess it is the
useCapture
option, correct?
What do you think?
from browser-interaction-time.
🎉 This issue has been resolved in version 2.0.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
from browser-interaction-time.
Related Issues (20)
- An in-range update of typedoc is breaking the build 🚨 HOT 5
- An in-range update of copy-webpack-plugin is breaking the build 🚨 HOT 1
- An in-range update of mini-css-extract-plugin is breaking the build 🚨
- An in-range update of @types/jest is breaking the build 🚨 HOT 2
- An in-range update of webpack-dev-server is breaking the build 🚨 HOT 1
- Make idle an optional feature
- An in-range update of cross-env is breaking the build 🚨 HOT 2
- An in-range update of rollup is breaking the build 🚨 HOT 37
- Timer stops when there is input on the page HOT 4
- The automated release is failing 🚨 HOT 8
- BrowserInteractionTime.startTimer on a destroyed instance does not poll for time changes
- Does it work correctly when user watches a video on a page? HOT 4
- An in-range update of testcafe is breaking the build 🚨 HOT 3
- An in-range update of commitlint is breaking the build 🚨 HOT 3
- An in-range update of webpack is breaking the build 🚨 HOT 16
- An in-range update of rollup is breaking the build 🚨 HOT 38
- An in-range update of @types/node is breaking the build 🚨 HOT 39
- An in-range update of testcafe is breaking the build 🚨 HOT 8
- An in-range update of file-loader is breaking the build 🚨 HOT 1
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 browser-interaction-time.