Skip to content

Commit

Permalink
修复拖拽完后立即setTime不生效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglin2 committed Jan 13, 2023
1 parent 8c715d4 commit 6e1877b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wanglin1994/video-timeline",
"version": "0.1.3",
"version": "0.1.4",
"description": "一个基于Vue2的时间轴组件,一般用于监控视频的回放。",
"main": "index.js",
"scripts": {},
Expand Down
4 changes: 3 additions & 1 deletion package/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,11 @@ export default {
return
}
if (this.mousedown && this.enableDrag) {
reset()
this.$emit('dragTimeChange', this.currentTime)
} else {
reset()
}
reset()
this.$emit('mouseup', e)
},
Expand Down

0 comments on commit 6e1877b

Please sign in to comment.