mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-31 03:18:45 +00:00
fix spacebar boost
This commit is contained in:
parent
b5b53a90f5
commit
b33f54e960
1 changed files with 10 additions and 0 deletions
|
|
@ -174,6 +174,11 @@ export function KeyboardEvents() {
|
|||
!dataRef.current.isInWatchParty &&
|
||||
dataRef.current.enableHoldToBoost
|
||||
) {
|
||||
// Skip if it's a repeated event
|
||||
if (evt.repeat) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Skip if a button is targeted
|
||||
if (
|
||||
evt.target &&
|
||||
|
|
@ -234,6 +239,11 @@ export function KeyboardEvents() {
|
|||
k === " " &&
|
||||
(!dataRef.current.enableHoldToBoost || dataRef.current.isInWatchParty)
|
||||
) {
|
||||
// Skip if it's a repeated event
|
||||
if (evt.repeat) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Skip if a button is targeted
|
||||
if (
|
||||
evt.target &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue