zakarumych / egui-snarl

Customizable egui node-graph library
https://crates.io/crates/egui-snarl
MIT License
287 stars 28 forks source link

Web demo freaks out (keeps zooming) #28

Closed SpaceMacGyver closed 3 months ago

SpaceMacGyver commented 3 months ago

Not sure how much of this is my own environment; sitting on kubuntu 24.04 and have tried both Firefox (128.0.3) and Chromium (127.0.6533.88). Basically, as soon as I hit the web demo page, it starts zooming in (or perhaps scaling) and rapidly becomes unusable.

zakarumych commented 3 months ago

Thank you for pointing to this issue. It was related to how eframe operate in wasm environment. For some reason if canvas size is not set it keeps making it bigger and bigger

zakarumych commented 3 months ago

Fixed in 003705c