Skip to content

Commit

Permalink
fix(freeDom): markline manual diff line keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
SepVeneto committed Nov 23, 2024
1 parent c7da33a commit a6d3e96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/components/freeDom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ const freeDom = defineComponent({
selected,
domRef,
style,
reset() {
sceneContext.emit('moveup')
},
onDragStop,
onDrag,
onDragStart,
Expand Down Expand Up @@ -403,6 +406,7 @@ const freeDom = defineComponent({
{
nativeOnMousedown: this.handleSelect,
nativeOnKeydown: this.handleKeyboard,
nativeOnKeyup: this.reset,
},
)?.(slots)
},
Expand Down
1 change: 1 addition & 0 deletions packages/examples/free-dom/diff/distance.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<FreeScene
:diff="10"
manual-diff
keyboard
>
<FreeDom v-model="pos1">
Expand Down

0 comments on commit a6d3e96

Please sign in to comment.