mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 02:58:11 +08:00
Fix device pixel ratio being tied to the document by moving it from overlays to portfolio
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user