Skip to content

Commit dfb13ec

Browse files
fix(web): prevent scrolling when setting focus on the canvas (#838)
1 parent d3d7588 commit dfb13ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-client/iron-remote-desktop/src/iron-remote-desktop.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@
621621
}
622622
623623
function setMouseIn(evt: MouseEvent) {
624-
canvas.focus();
624+
canvas.focus({ preventScroll: true });
625625
remoteDesktopService.mouseIn(evt);
626626
}
627627

0 commit comments

Comments
 (0)