leaferjs / leafer-ui

一款好用的 Canvas 引擎,革新的开发体验,用于高效绘图 、UI 交互、图形编辑。A user-friendly Canvas engine with a revolutionary development experience, for efficient drawing, UI interactions, and graphic editing.
https://www.leaferjs.com
MIT License
2.52k stars 89 forks source link

new Frame重置尺寸 元素能不能同步缩放 #219

Closed yy8z7 closed 1 month ago

yy8z7 commented 1 month ago

new Frame重置尺寸 元素能不能同步缩放

leaferjs commented 1 month ago

设置 resizeChildren https://www.leaferjs.com/ui/reference/property/resize.html#resizechildren-boolean

yy8z7 commented 1 month ago

image 如果禁用zoom缩放好像就不同步了 是不是

yy8z7 commented 1 month ago

能不能 设置 双指不给缩放画布

leaferjs commented 1 month ago

目前只能禁用wheel事件,或者直接禁用zoom

leaferjs commented 1 month ago

能不能 设置 双指不给缩放画布

增加了一个设置可以关闭: https://www.leaferjs.com/ui/reference/config/app/multiTouch.html