Slider:Prevent text selection on mouse drag

pull/3106/head
Pan 2017-02-26 18:57:44 +08:00 committed by 杨奕
parent 1eaec019e3
commit 411ddf92cc
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@
onButtonDown(event) {
if (this.disabled) return;
event.preventDefault();
this.onDragStart(event);
window.addEventListener('mousemove', this.onDragging);
window.addEventListener('mouseup', this.onDragEnd);