Andre Weissflog
Andre Weissflog
This is what I do to open a link in a new browser tab, it's essentially the same as above: ```c EM_JS(void, emsc_js_open_link, (const char* c_url), { var url =...
@dougbinks Hmm indeed, now I'm actually wondering why it works :D My link-clicked callback looks like this: https://github.com/floooh/v6502r/blob/2c3dd083b2087577a9a49364c2822564cc2dfc52/src/ui.cc#L2032-L2046 ...this just records that a link has been clicked... ...and then in...
@dougbinks: mystery solved, I actually changed imgui_markdown.h so that the callback is always called as soon as it is hovered: https://github.com/floooh/v6502r/blob/2c3dd083b2087577a9a49364c2822564cc2dfc52/ext/imgui_markdown/imgui_markdown.h#L516-L526 (also this is a very old version of imgui_markdown.h)
Yeah it's a mess tbh (like many things on the web platform unfortunately), serving from localhost typically enables a couple of security-related features to make testing easier. But I don't...
Hmm yeah, I seem to remember that there's just a subtle icon that a "popup" has been blocked when serving from real web servers, and clicking the icon may allow...
The regular key- and pointer-input from browser to Dear ImGui works pretty well, it's mostly about special browser features which require to be called from a "short-lived event handler" for...
Regarding > https://github.com/ocornut/imgui/issues/7660#issuecomment-2203697098 Did you try if it also works on a 'properly hosted' web page hosted via https and not just from localhost, 127.0.0.1 or 0.0.0.0? Normally a link...
Nice, yeah works here too :) @ypujante Is that the regular example_glfw_wgpu in the Dear ImGui repo? I need to check how that magic works ;) @ocornut AFAIK if there...
Ah ok, as always, Safari is the problem... I get a 'Popup Blocked" message there and nothing happens (since the demo requires WebGPU, need to test with the latest Safari...
@ypujante it's a bit of a mess tbh and spread over different places in the code. Best to start here in my event handler and work backwards. The event handler...