mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
chore(editor): 优化editor侧边栏拖拽卡顿问题
This commit is contained in:
parent
1ce4977d34
commit
0993d19778
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user