mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(draw): close #515
This commit is contained in:
@@ -102,7 +102,7 @@ export class EditorUtil extends TDShapeUtil<T, E> {
|
|||||||
onResize.current = e => {
|
onResize.current = e => {
|
||||||
const first = e[0];
|
const first = e[0];
|
||||||
const bounds = first.contentRect;
|
const bounds = first.contentRect;
|
||||||
const realHeight = bounds.height / zoomLevel;
|
const realHeight = bounds.height;
|
||||||
if (
|
if (
|
||||||
bounds.height !== 0 &&
|
bounds.height !== 0 &&
|
||||||
Math.abs(realHeight - height) > 1
|
Math.abs(realHeight - height) > 1
|
||||||
|
|||||||
Reference in New Issue
Block a user