Skip to content

Commit

Permalink
* scrollbar: prevent to select text on scrolling.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed May 10, 2024
1 parent 8b54371 commit 3b51c00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/scrollbar/src/component/scrollbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export class Scrollbar extends Component<ScrollbarProps, ScrollbarState> {
if (!this.state.dragStart) {
this.setState({dragStart: {x: event.clientX, y: event.clientY, offset: this.scrollPos}});
}
event.preventDefault();
event.stopPropagation();
};

Expand Down

0 comments on commit 3b51c00

Please sign in to comment.