Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emscripten drag ofxGui out of the window #7811

Open
Jonathhhan opened this issue Dec 9, 2023 · 1 comment
Open

Emscripten drag ofxGui out of the window #7811

Jonathhhan opened this issue Dec 9, 2023 · 1 comment

Comments

@Jonathhhan
Copy link
Contributor

With Emscripten it is possible to drag ofxGui elements out of the window. Only a restart of the page makes it possible to use ofxGui again.
Try here: https://nickhardeman.com/temp/OFExamples/ofxAssimpExample2/index.html

It does not happen with ofxImGui, and I think that would be nice for ofxGui too.
Try here: https://ofximgui.handmadeproductions.de/

@artificiel
Copy link
Contributor

well, actually that's not specifically emscripten-related! same behaviour on native macOS.

the imgui panel behaviour is interesting, but relies on the fact that most areas of the imgui panel are going to drag the whole thing; ofxPanel only the top bar drags the thing (minus the preset buttons zone).

what would be the expected behaviour?

perhaps the behaviour should be "elastic"? one may drag the window completely out (as currently) for whatever reason, ex: inspecting what's under, but upon release, if the top bar is out of window rect, the panel pops back at the edge of the window to reveal a chunk of the bar? or maybe it's too complicated and just impose a limit like imgui, but applicable to the top bar at all times.

(that will not prevent someone from moving a panel to the extreme right, then making the window smaller thus hiding the panel, but at that point I guess the person would have "asked for it"? in any case it's recoverable by re-growing the window.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants