yyllff / split-pane-react

Resizable split panes for React.js.
https://yyllff.github.io/split-pane-react
MIT License
95 stars 25 forks source link

FR: Disable user-select on .react-split__sash by default #5

Closed mhxim closed 2 years ago

mhxim commented 2 years ago

Feature request:

Current behavior: Dragging the divider outside of the split pane selects text. split-pane-react bug

Expected behavior: Dragging the divider of the split pane doesn't select text.


Proposed changes: Modify the default CSS to disable user-select on the divider:

.react-split__sash {
   user-select: none;
}
yyllff commented 2 years ago

Feature request:

Current behavior: Dragging the divider outside of the split pane selects text. split-pane-react bug

Expected behavior: Dragging the divider of the split pane doesn't select text.

Proposed changes: Modify the default CSS to disable user-select on the divider:

.react-split__sash {
   user-select: none;
}

Thank you for your use, but this may not solve your problem。The component can only control the text inside the component not to be selected, and the content outside the component needs to be controlled by you. For example, you can use this component as the root component. I don't know if it can solve your problem.

yyllff commented 2 years ago

fixed