mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix(core): center peek zoomIn animation not work in firefox (#8817)
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
useCallback,
|
||||
useContext,
|
||||
useEffect,
|
||||
useLayoutEffect,
|
||||
useRef,
|
||||
useState,
|
||||
} from 'react';
|
||||
@@ -313,7 +314,7 @@ export const PeekViewModalContainer = forwardRef<
|
||||
};
|
||||
}, [onOpenChange]);
|
||||
|
||||
useEffect(() => {
|
||||
useLayoutEffect(() => {
|
||||
if (animation === 'zoom') {
|
||||
open ? animateZoomIn() : animateZoomOut();
|
||||
} else if (animation === 'fade') {
|
||||
|
||||
Reference in New Issue
Block a user