mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
prolong delay animation click time
This commit is contained in:
parent
2969f9d1e5
commit
6edac76abb
@ -103,10 +103,10 @@ export default class Modal extends React.Component<ModalProps, any> {
|
|||||||
x: e.pageX,
|
x: e.pageX,
|
||||||
y: e.pageY,
|
y: e.pageY,
|
||||||
};
|
};
|
||||||
// 20ms 内发生过点击事件,则从点击位置动画展示
|
// 100ms 内发生过点击事件,则从点击位置动画展示
|
||||||
// 否则直接 zoom 展示
|
// 否则直接 zoom 展示
|
||||||
// 这样可以兼容非点击方式展开
|
// 这样可以兼容非点击方式展开
|
||||||
setTimeout(() => mousePosition = null, 20);
|
setTimeout(() => mousePosition = null, 100);
|
||||||
});
|
});
|
||||||
mousePositionEventBinded = true;
|
mousePositionEventBinded = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user