leafer-ui icon indicating copy to clipboard operation
leafer-ui copied to clipboard

App 设置内边距后,ScrollBar 鼠标悬停不正常

Open mozbia opened this issue 2 months ago • 1 comments

https://github.com/user-attachments/assets/524a79f7-1c79-445e-8fca-ffaf533b8e30

leafer 最新版 代码:

import { App, Rect ,version} from 'leafer-ui' import '@leafer-in/editor' // 导入图形编辑器插件 import '@leafer-in/viewport' // 导入视口插件 import { ScrollBar } from '@leafer-in/scroll' // 导入滚动条插件 //

const app = new App({ view: window, top:30, editor: {} }) //设置 top 底部滚动条悬停鼠标不正常

new ScrollBar(app) // // = app.sky.add(new ScrollBar(app.tree)) console.log(version) app.tree.add(Rect.one({ editable: true, fill: '#FEB027', cornerRadius: [20, 0, 0, 20] }, 500, 100)) app.tree.add(Rect.one({ editable: true, fill: '#FFE04B', cornerRadius: [0, 20, 20, 0] }, 650, 2400))

mozbia avatar Oct 20 '25 12:10 mozbia

收到,谢谢反馈~

leaferjs avatar Oct 20 '25 14:10 leaferjs