Skip to content

Feature request: interative resize event #69

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

Closed
rafaelbeckel opened this issue Mar 23, 2025 · 5 comments · Fixed by #70
Closed

Feature request: interative resize event #69

rafaelbeckel opened this issue Mar 23, 2025 · 5 comments · Fixed by #70

Comments

@rafaelbeckel
Copy link
Contributor

Hey team,

I noticed the "resize" event is fired on mouse release.
This causes the surface to stretch while I'm dragging the window border.

Is there a way to make the event fire every frame while the user drags the border?

Here's a recording comparing RenderCanvas to Winit running the same shader:
https://www.loom.com/share/12f9b9adbe324fcda8ae5dc708c35943

@Korijn
Copy link
Contributor

Korijn commented Mar 23, 2025

Which backend are you using? Qt? Glfw?

@rafaelbeckel
Copy link
Contributor Author

Glfw. I did not test with others.

@almarklein
Copy link
Member

Yeah glfw does this. I just looked into this, seeing if there's a way to "fix" that, but no luck. During resizing, the glfw.poll_events() blocks.

@almarklein
Copy link
Member

Oh wait, maybe ... https://stackoverflow.com/a/56614042/2271927

@almarklein
Copy link
Member

#70

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

Successfully merging a pull request may close this issue.

3 participants