我在这里设置了一个基本的Gridster.js演示:http://jsfiddle.net/dvPaF/
我的目标是让它更具“响应性”来拖动事件。现在,用手指拖动元素和实际元素移动之间存在明显的延迟。一旦拖动开始,延迟就会消失。
我将代码调试到event:
的位置this.$body.on(pointer_events.move, function(mme){
=> first time fast, second time with delay <=
// I have commented out the "distance" logic
}
第一次发射速度很快,但第二次发生延迟。我已经在上面的事件中评论了距离逻辑。
我正在各种Android设备上测试它。