Skip to content

Commit

Permalink
Merge pull request #38 from JoaoMario109/37-add-completed-event
Browse files Browse the repository at this point in the history
  • Loading branch information
j2only committed Mar 20, 2024
2 parents b22c518 + d9ca5be commit 6852863
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/SlideUnlock.vue
Expand Up @@ -225,8 +225,10 @@ export default defineComponent({
Slider.ProgressWidth = computedPosition + (props.height / 2)
Slider.HandlerPosition = computedPosition
fadeText(true)
if (computedPosition >= sliderWidth.value - props.height)
complete()
if (computedPosition >= sliderWidth.value - props.height) {
complete();
passVerify();
}
}
watch(() => props.position, () => {
Expand Down

0 comments on commit 6852863

Please sign in to comment.