1.0.7 • Published 7 years ago
throttle-hyh v1.0.7
limit the number of events per second #install
npm throttle-hyh
by commonJS
let storageUtil = require("throttle-hyh");
by Script tag
<script src="./index.js"></script>
#API
canvas.addEventListener('mousemove', throttle(onMouseMove, 10), false);