debounced-seeker:用于前后移动光标并在一段时间不活动后触发回调的小实用函数

时间:2021-07-02 01:39:04
【文件属性】:
文件名称:debounced-seeker:用于前后移动光标并在一段时间不活动后触发回调的小实用函数
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-02 01:39:04
JavaScript 去抖动寻道器 用于前后移动光标并在一段时间不活动后触发回调的小实用函数。 用法 var seeker = require ( 'debounced-seeker' ) ; var seek = seeker ( function ( offset ) { // after 100ms of inactivity (seek-function // not getting called) this callback gets // triggered. The Cursor gets resetted to 0 // afterwards. console . log ( offset ) ; // 2 } , 100 ) ; // cursor is 0 initialy seek ( 1 ) ; // cursor: 1 seek ( 1 ) ; // cursor
【文件预览】:
debounced-seeker-master
----LICENSE(1KB)
----README.md(612B)
----tests.js(470B)
----.gitignore(20B)
----index.js(334B)
----package.json(509B)

网友评论