We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f8453 commit 504d967Copy full SHA for 504d967
Imgui/src/ImGuiImplEmscripten.cpp
@@ -90,10 +90,8 @@ void ImGuiImplEmscripten::Render(IDeviceContext* pCtx)
90
91
bool ImGuiImplEmscripten::OnMouseEvent(int32_t EventType, const EmscriptenMouseEvent* Event)
92
{
93
- auto DevicePixelRatio = emscripten_get_device_pixel_ratio();
94
-
95
auto& io = ImGui::GetIO();
96
- io.MousePos = ImVec2(Event->targetX * DevicePixelRatio, Event->targetY * DevicePixelRatio);
+ io.MousePos = ImVec2(Event->targetX, Event->targetY);
97
io.MouseDown[0] = Event->buttons & 1;
98
io.MouseDown[1] = Event->buttons & 2;
99
io.MouseDown[2] = Event->buttons & 4;
0 commit comments