Fix device pixel ratio being tied to the document by moving it from overlays to portfolio

This commit is contained in:
Keavon Chambers
2025-03-21 10:13:08 -07:00
parent fff0a53799
commit 4e418bbfe1
6 changed files with 28 additions and 11 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ impl EditorHandle {
/// Inform the overlays system of the current device pixel ratio
#[wasm_bindgen(js_name = setDevicePixelRatio)]
pub fn set_device_pixel_ratio(&self, ratio: f64) {
let message = OverlaysMessage::SetDevicePixelRatio { ratio };
let message = PortfolioMessage::SetDevicePixelRatio { ratio };
self.dispatch(message);
}