Disable dragging with right click, fixes #517

This commit is contained in:
Tautvidas Sipavičius
2016-06-09 12:19:54 +03:00
parent 1a3c767601
commit 359119d896

View File

@@ -112,7 +112,16 @@ define([
}
}
},
}).preventDefault('auto');
})
.preventDefault('auto')
.actionChecker(function (pointer, event, action) {
// Disable dragging with right click
if (event.button !== 0) {
return null;
}
return action;
});
if (this.options.drop !== undefined) {
interactable.getDropModel = this.options.drop;