Skip to content

Commit df14639

Browse files
bteasxzz
andauthored
fix: refine dragging view area (#246)
Co-authored-by: Kevin Deng 三咲智子 <[email protected]>
1 parent e3d1b9f commit df14639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SplitPane.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function dragMove(e: MouseEvent) {
3737
? container.value.offsetHeight
3838
: container.value.offsetWidth
3939
const dp = position - startPosition
40-
state.split = startSplit + ~~((dp / totalSize) * 100)
40+
state.split = startSplit + +((dp / totalSize) * 100).toFixed(2)
4141
}
4242
}
4343

0 commit comments

Comments
 (0)