prolong delay animation click time

This commit is contained in:
afc163 2016-10-07 18:00:40 +08:00
parent 2969f9d1e5
commit 6edac76abb

View File

@ -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;
} }