fix: swipe sometimes will change to drag image (#81)

* swipe forbid dragstart
This commit is contained in:
Yao
2017-08-19 12:27:05 +08:00
committed by GitHub
parent f151a1cb46
commit 893a192056
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);