rhythmaware
v0.2.0
Published
Input Rhythm Aware.
Readme
RhythmAware
输入节奏感知器。
根据用户当前的输入速度快速调整,感知用户当前的输入停顿。
USAGE
var RhythmAware = require("rhythmaware");
var AutoComplete = require("autocomplete");
// AutoComplete 为假象模块。
var autocomplete = new AutoComplete("input");
var rhy = new RhythmAware("input").on("pause", function(){
var datas = get_data(this.value);
autocomplete.render(datas);
});API
RhythmAware(String selector)
Constructor.
.on(String eventName, Function handler)
Add event listener.
.off(String eventName, Function handler)
Remove event listener.
EVENTS
input
When use keyboard inputting, fire input event.
pause
When paused input by keyboard, fire pause event.
