mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 06:04:23 +00:00
fix: logseq portal resizing issue
This commit is contained in:
@@ -19,12 +19,10 @@ export const HTMLLayer = observer(function HTMLLayer({ children }: HTMLLayerProp
|
||||
if (!layer) return
|
||||
|
||||
const { zoom, point } = viewport.camera
|
||||
requestAnimationFrame(() => {
|
||||
layer.style.setProperty(
|
||||
'transform',
|
||||
`scale(${zoom}) translate3d(${point[0]}px, ${point[1]}px, 0)`
|
||||
)
|
||||
})
|
||||
layer.style.setProperty(
|
||||
'transform',
|
||||
`scale(${zoom}) translate3d(${point[0]}px, ${point[1]}px, 0)`
|
||||
)
|
||||
}),
|
||||
[]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user