Emscripten: Attempt to scroll canvas into view
This commit is contained in:
parent
cfd2baa064
commit
f7bca3b1b1
@ -44,4 +44,10 @@ void MainLoop()
|
||||
{
|
||||
SetFpsLimit(ui::Engine::Ref().GetFpsLimit());
|
||||
MainLoopBody();
|
||||
EM_ASM({
|
||||
let canvas = document.querySelector("canvas.emscripten");
|
||||
if (canvas) {
|
||||
canvas.scrollIntoView(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user