Skip to content

Commit 8d0b750

Browse files
Seray CiftciSeray Ciftci
authored andcommitted
Rephrased comment for clarity
1 parent a8e9b39 commit 8d0b750

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/components/widgets/inputs/NumberInput.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@
315315
// Don't drag the text value from is input element
316316
e.preventDefault();
317317
318-
// Get the click target and set the requestPointerLock immediately
319-
// Safari and Firefox Nightly require requestPointerLock() to be called directly inside the pointerdown handler.
318+
// Get the event target and set the requestPointerLock immediately
319+
// Safari and Firefox Nightly require requestPointerLock() to be called directly inside the pointerdown handler instead of later in beginDrag().
320320
const target = e.target || undefined;
321321
if (!(target instanceof HTMLElement)) return;
322322

0 commit comments

Comments
 (0)