mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 06:25:54 +01:00
leave the cursor alone if config requests no cursor change
This commit is contained in:
parent
ed34b93d20
commit
4d012cfda2
@ -422,7 +422,10 @@ void set_cursor_if_necessary(emscripten_browser_cursor_internal::cursor& current
|
||||
void update_cursor(ImGui_ImplEmscripten_Data* bd)
|
||||
{
|
||||
// Sync any cursor changes due to ImGui to the browser's cursor
|
||||
if (ImGui::GetIO().WantCaptureMouse) // mouse is hovering over the gui
|
||||
ImGuiIO& io{ImGui::GetIO()};
|
||||
if (io.ConfigFlags & ImGuiConfigFlags_NoMouseCursorChange) return;
|
||||
|
||||
if (io.WantCaptureMouse) // mouse is hovering over the gui
|
||||
{
|
||||
if (bd->CursorToRestore == nullptr)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user