Skip to content

Commit 26a39eb

Browse files
authored
fix(commandline): prevent unwanted scrolling on initial mouse entry (@byseif21) (monkeytypegame#6615)
### Description fix this weird behavior scroll: https://github.com/user-attachments/assets/73a7c9f2-f584-4d4a-9932-dbb565d99be6
1 parent bf4f1e0 commit 26a39eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/src/ts/commandline/commandline.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ const modal = new AnimatedModal({
765765
let lastHover: HTMLElement | undefined;
766766

767767
suggestions.addEventListener("mousemove", async (e) => {
768+
mouseMode = true;
768769
const target = e.target as HTMLElement | null;
769770
if (target === lastHover) return;
770771

0 commit comments

Comments
 (0)