Skip to content

app子级Leafer(sceneLeafer)双击编辑文本后有bug:无法正常框选文字,反而被编辑拖拽占用了鼠标 #899

Description

@scory01
Image

// #文本编辑器
import { App, Text } from 'leafer-ui'
import '@leafer-in/editor' // 导入图形编辑器插件
import '@leafer-in/viewport' // 导入视口插件(可选)
import '@leafer-in/text-editor' // 导入文本编辑插件

const app = new App({
view: window,
editor: {}
})

const sceneLeafer = app.addLeafer({ type: 'design', wheel: { zoomMode: true } })
app.addBefore(sceneLeafer, app.tree)

sceneLeafer.add(Text.one({
text: 'Action is the proper fruit of knowledge.',
editable: true, fill: '#FFE04B', fontSize: 16,
}, 100, 100, 100))

app.tree.add(Text.one({
text: 'Action is the proper fruit of knowledge.',
editable: true, fill: '#FFE04B', fontSize: 16,
}, 100, 300, 100))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions