chore(editor): 优化editor侧边栏拖拽卡顿问题

This commit is contained in:
qinhaoyan 2023-10-08 14:49:10 +08:00
parent 1ce4977d34
commit 0993d19778

View File

@ -31,6 +31,8 @@ export class WidthDraggableBtn extends React.Component<WidthDraggableProps> {
document.addEventListener('mouseup', this.handleResizeMouseUp);
this.startX = e.clientX;
this.startWidth = this.dragWrap.offsetWidth;
// 拖拽过程中会选中文本,导致卡顿,所以阻止下默认行为
e.preventDefault();
}
handleResizeMouseMove(e: MouseEvent) {