Skip to content

Commit 6bb0549

Browse files
authored
Merge pull request #48 from yuchanns/fix/touch-focus
fix(platform/wasm): clear focus by resetting mouse move
2 parents 721e530 + 2714231 commit 6bb0549

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)