Skip to content

Commit

Permalink
fix: avoid activating pan while writting
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfran committed Feb 20, 2025
1 parent d1ddba3 commit 633198b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class BoardShourtcutsDirective {
}

@HostListener('document:keydown.space', ['$event']) pan(e: KeyboardEvent) {
if (e.repeat) return;
if (e.repeat || isInputField()) return;

this.#store.dispatch(
BoardPageActions.panInProgress({ panInProgress: true }),
Expand All @@ -46,7 +46,7 @@ export class BoardShourtcutsDirective {
@HostListener('document:keyup.space', ['$event']) finishPan(
e: KeyboardEvent,
) {
if (e.repeat) return;
if (e.repeat || isInputField()) return;

this.#store.dispatch(
BoardPageActions.panInProgress({ panInProgress: false }),
Expand Down

0 comments on commit 633198b

Please sign in to comment.