From 6edac76abbd2e6d7fdee7a8e63c6e935367e1074 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 7 Oct 2016 18:00:40 +0800 Subject: [PATCH] prolong delay animation click time --- components/modal/Modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index f3934a2016..0fb94933cf 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -103,10 +103,10 @@ export default class Modal extends React.Component { x: e.pageX, y: e.pageY, }; - // 20ms 内发生过点击事件,则从点击位置动画展示 + // 100ms 内发生过点击事件,则从点击位置动画展示 // 否则直接 zoom 展示 // 这样可以兼容非点击方式展开 - setTimeout(() => mousePosition = null, 20); + setTimeout(() => mousePosition = null, 100); }); mousePositionEventBinded = true; }