Skip to content

Commit

Permalink
fix(ui): ctrlhidebehavior
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya authored Feb 5, 2024
1 parent 2f7e026 commit 4079bce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/src/components/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const render = (it: UIInterface) => {
debounceHideCtrl()
}
})
if (config.ctrlHideBehavior == 'delay') player.$root.addEventListener('mouseleave', debounceHideCtrl)
if (config.ctrlHideBehavior == 'hover') player.$root.addEventListener('mouseleave', hideCtrl)
}

Expand Down

0 comments on commit 4079bce

Please sign in to comment.