Chrome: disable ctrl-+- / resizing

In Chrome, it appears that ctrl-+/- causes winit/wgpu to have a runtime error. It appears the issue is that the canvas size / backing size becomes mismatched, resulting in an runtime error.

Is there a way to disable ctrl-+/- and other resize keys in Chrome ?


I'm not sure a Rust forum is the best place to ask a question like this, but it sounds like something that would need a Chrome extension:

the error is caused by your application doesn't handle resizing events correctly, it's not an winit or wgpu error per se, so I'd suggest fix your application instead of disable the zoom functionality. properly handling doesn't mean your program need to do adaptive rendering, it simply mean action should be taken inside your application instead of at the browser level.


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.