feat: 8 invisible resize handles on whole perimeter (replace native useWindowResize)

This commit is contained in:
Hermes Agent committed 2026-09-09 19:25:38 +02:00
1 parent 8a0bf4d8f3
commit b6c0a58071
2 files changed
+23 -9

No files matched your search

+1 -2
View File
@@ -146,10 +146,9 @@ export default function () {
if (dir.includes('top')) ny = p.y - dy / zoom
figma.ui.reposition(nx, ny)
}
// Док-режим во время live-ресайза не трогаем (финальный RESIZE_WINDOW пересчитает).
})
// Ресайз окна плагина (drag за угол в UI -> useWindowResize -> RESIZE_WINDOW)
// Ресайз окна плагина (кастомные ручки по периметру -> RESIZE_WINDOW по pointerup)
on('RESIZE_WINDOW', function (windowSize: { width: number; height: number }) {
const { width, height } = clampWindowSize(windowSize)
lastSize = { width, height }