Commit 411ddf92 authored by Pan's avatar Pan Committed by 杨奕

Slider:Prevent text selection on mouse drag

parent 1eaec019
...@@ -96,6 +96,7 @@ ...@@ -96,6 +96,7 @@
onButtonDown(event) { onButtonDown(event) {
if (this.disabled) return; if (this.disabled) return;
event.preventDefault();
this.onDragStart(event); this.onDragStart(event);
window.addEventListener('mousemove', this.onDragging); window.addEventListener('mousemove', this.onDragging);
window.addEventListener('mouseup', this.onDragEnd); window.addEventListener('mouseup', this.onDragEnd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment