uselongtimenomove
v0.0.2
Published
React Hooks detects if the user has not moved the mouse for a long time
Downloads
8
Readme
Introduction
Detects if the user has not moved the mouse for a long time.
Quick Start
import useLongTimeNoMove from 'uselongtimenomove';
function App() {
const isNoMoved = useLongTimeNoMove(5000);
if(isNoMoved) return <div>User long time no move</div>
return <div>User moved recently</div>
}