Skip to content

Commit 2714231

Browse files
committed
fix(platform/wasm): clear focus by resetting mouse move
1 parent 721e530 commit 2714231

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/touch.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ end
182182
function touch.update(frame)
183183
current_frame = frame
184184
if pending_clear_focus then
185-
mouse.set_focus(nil, nil)
185+
mouse.mouse_move(0, 0)
186186
pending_clear_focus = nil
187187
end
188188
if not state.active then

soluna

Submodule soluna updated 1 file

0 commit comments

Comments
 (0)