This commit is contained in:
yehuozhili
2021-07-18 16:38:48 +08:00
parent f1a3d98bcb
commit af5c20552f
4 changed files with 12 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ export const innerDrag = function (
const store = config.getStore();
return {
onMouseDown: (e: React.MouseEvent) => {
e.preventDefault();
//e.preventDefault();
e.stopPropagation();
if (!item.canDrag) {
containerFocusRemove(config).onMouseDown(e);
@@ -106,7 +106,7 @@ export const innerContainerDrag = function (config: UserConfig) {
export const innerContainerDragUp = function (config: UserConfig, mode = 'normal') {
const store = config.getStore();
const onMouseUp = (e: React.MouseEvent) => {
e.preventDefault();
// e.preventDefault(); 这个会导致无法取消选中
iframeWrapperMove(config);
wrapperMoveMouseUp(config);
selectRangeMouseUp(e, config);