diff --git a/crates/ui-egui/src/tools/frame_tool.rs b/crates/ui-egui/src/tools/frame_tool.rs index a3b43bc664..cf83f9a185 100644 --- a/crates/ui-egui/src/tools/frame_tool.rs +++ b/crates/ui-egui/src/tools/frame_tool.rs @@ -583,7 +583,10 @@ impl CanvasTool for FramePass<'_> { let (reach, scope, mods, clicks) = (view.doc_len(cx.reach()), self.scope, pointer.mods, pointer.clicks); let style = ConstrainStyle::new(f64::from(cx.slop), f64::from(cx.slop)); match scope.with_app(|app| press_rule(app, at, clicks, reach, &style, mods)) { - Pressed::Draw => self.state.draw.press(pointer, cx), + Pressed::Draw => { + // Bitmap and Indexed Color documents make no frame (#13886): no drag, preview or alert. + if self.scope.with_app(|app| app.session.is_enabled("layer.new.frame")) { self.state.draw.press(pointer, cx) } else { ToolAction::Done } + } Pressed::Done => ToolAction::Done, Pressed::Move(m) => { self.state.moving = Some(m);