Merge remote-tracking branch 'main/dev' into dev

This commit is contained in:
陈嘉涵
2017-08-21 10:05:41 +08:00
3 changed files with 30 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ Input.prototype = Object.create(new EventEmitter());
extend(Input.prototype, {
bind: function(host) {
if (Vue.prototype.$isServer) return;
bindEvents(host, 'dragstart', e => e.preventDefault());
bindEvents(host, 'touchstart mousedown', this.onTouchStart);
if (this.options.listenMoving) {
bindEvents(window, 'touchmove mousemove', this.onTouchMove);