Comments (3)
I believe the issue, in both instances, is linked to this javascript problem.
Although it is not an ImGui bug per se, but more an issue in the underlying implementations/platform, I just wanted to file this bug here in case other people run into this issue and know that there is, at the moment, an issue when using ImGui in the browser... In the end, it does break ImGui since the state of keys maintained by ImGui becomes out of whack with reality which can then lead to other issues...
I am going to investigate if there is a workaround I can implement in emscripten-glfw at the minimum since I am in control of this library... I am going to report it to emscripten as well...
from imgui.
The issue was actually reported for the built-in/embedded implementation of GLFW3 back on 10/2022 (and never addressed for what I can tell)
I have now implemented a workaround for emscripten-glfw and issued a PR to be merged.
from imgui.
Another issue in this case, is that io.ConfigMacOSXBehaviors
is not set.
It would need to be set on a Mac to invert Super and Ctrl and handle behaviors such as Ctrl+LeftClick turned into RightClick.
Normally we do this:
#ifdef __APPLE__
ConfigMacOSXBehaviors = true; // Set Mac OS X style defaults based on __APPLE__ compile time flag
#else
ConfigMacOSXBehaviors = false;
#endif
But of course this doesn't run on Emscripten.
So we need a way to detect a Mac user on Emscripten.
from imgui.
Related Issues (20)
- Latest SDL3 API removed keysym field in SDL_Keyboardevent
- Menu window size is erroneously clamped to main viewport size HOT 4
- Wrong "Number of Segment" value in Demo Window. HOT 1
- Dragging secondary viewports out of main viewport HOT 5
- Latest SDL API breaks build - The text input state has been changed to be window-specific HOT 2
- Differing horizontal alignment for drag widget
- Why does the ImGuiListClipper save it's own ImGuiContext? HOT 2
- Can I get imgui to run without an imgui window? HOT 2
- Detect when Combo() opened HOT 8
- Efficient approach to create multiple windows along with dock space saving feature.
- ClipRect not honored / Overlapping text over docked window borders HOT 5
- After being injected into the program via dll, it will crash for no reason HOT 1
- Draw Quad with custom shader DrawCallback HOT 9
- ChildBorderSize does not change less than 3.0f HOT 1
- "Failed to initialize OpenGL Loader!" After properly initializing opengl functions HOT 2
- Backends/OpenGL3 1.90.8 font texture not recreated HOT 1
- Value wrapping for drag widget HOT 5
- Correct way to disable window draging for a custom widget HOT 3
- Drawing rounded rects with individual corner radii HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.