mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 04:42:24 +00:00
Merge branch 'pr/63' into production
This commit is contained in:
commit
62772b6bd6
1 changed files with 10 additions and 0 deletions
|
|
@ -174,6 +174,11 @@ export function KeyboardEvents() {
|
||||||
!dataRef.current.isInWatchParty &&
|
!dataRef.current.isInWatchParty &&
|
||||||
dataRef.current.enableHoldToBoost
|
dataRef.current.enableHoldToBoost
|
||||||
) {
|
) {
|
||||||
|
// Skip if it's a repeated event
|
||||||
|
if (evt.repeat) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Skip if a button is targeted
|
// Skip if a button is targeted
|
||||||
if (
|
if (
|
||||||
evt.target &&
|
evt.target &&
|
||||||
|
|
@ -234,6 +239,11 @@ export function KeyboardEvents() {
|
||||||
k === " " &&
|
k === " " &&
|
||||||
(!dataRef.current.enableHoldToBoost || dataRef.current.isInWatchParty)
|
(!dataRef.current.enableHoldToBoost || dataRef.current.isInWatchParty)
|
||||||
) {
|
) {
|
||||||
|
// Skip if it's a repeated event
|
||||||
|
if (evt.repeat) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Skip if a button is targeted
|
// Skip if a button is targeted
|
||||||
if (
|
if (
|
||||||
evt.target &&
|
evt.target &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue