mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
[egui_web] respect the native zoom/scale of the browser
Remove all complexity with own scale slider. Closes https://github.com/emilk/egui/issues/53
This commit is contained in:
@@ -209,10 +209,12 @@ impl DemoApp {
|
||||
|
||||
self.frame_history.ui(ui);
|
||||
|
||||
ui.separator();
|
||||
|
||||
integration_context.output.pixels_per_point =
|
||||
self.pixels_per_point_ui(ui, &integration_context.info);
|
||||
if !is_web {
|
||||
// web browsers have their own way of zooming, which egui_web respects
|
||||
ui.separator();
|
||||
integration_context.output.pixels_per_point =
|
||||
self.pixels_per_point_ui(ui, &integration_context.info);
|
||||
}
|
||||
|
||||
if !is_web {
|
||||
ui.separator();
|
||||
|
||||
Reference in New Issue
Block a user