mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 22:08:12 +08:00
Fix the Eyedropper tool on web with Vello and on desktop with SVG (#3886)
This commit is contained in:
@@ -1191,7 +1191,6 @@ impl MessageHandler<PortfolioMessage, PortfolioMessageContext<'_>> for Portfolio
|
||||
Ok(message) => responses.add_front(message),
|
||||
}
|
||||
}
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
PortfolioMessage::SubmitEyedropperPreviewRender => {
|
||||
use crate::consts::EYEDROPPER_PREVIEW_AREA_RESOLUTION;
|
||||
|
||||
@@ -1223,10 +1222,6 @@ impl MessageHandler<PortfolioMessage, PortfolioMessageContext<'_>> for Portfolio
|
||||
Ok(message) => responses.add_front(message),
|
||||
}
|
||||
}
|
||||
#[cfg(target_family = "wasm")]
|
||||
PortfolioMessage::SubmitEyedropperPreviewRender => {
|
||||
// TODO: Currently for Wasm, this is implemented through SVG rendering but the Eyedropper tool doesn't work at all when Vello is enabled as the renderer
|
||||
}
|
||||
PortfolioMessage::ToggleFocusDocument => {
|
||||
self.focus_document = !self.focus_document;
|
||||
responses.add(MenuBarMessage::SendLayout);
|
||||
|
||||
Reference in New Issue
Block a user