From 3b51c00dc2d6b3571c9a8cded0ad20c73cf8d2bc Mon Sep 17 00:00:00 2001 From: sunhao Date: Fri, 10 May 2024 17:57:18 +0800 Subject: [PATCH] * scrollbar: prevent to select text on scrolling. --- lib/scrollbar/src/component/scrollbar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/scrollbar/src/component/scrollbar.tsx b/lib/scrollbar/src/component/scrollbar.tsx index 9e51d539da..53fc472122 100644 --- a/lib/scrollbar/src/component/scrollbar.tsx +++ b/lib/scrollbar/src/component/scrollbar.tsx @@ -150,6 +150,7 @@ export class Scrollbar extends Component { if (!this.state.dragStart) { this.setState({dragStart: {x: event.clientX, y: event.clientY, offset: this.scrollPos}}); } + event.preventDefault(); event.stopPropagation(); };