diff --git a/crates/op-host-native/src/widget_host/image_drop_target.rs b/crates/op-host-native/src/widget_host/image_drop_target.rs index 5934bdeb6..5d508b40b 100644 --- a/crates/op-host-native/src/widget_host/image_drop_target.rs +++ b/crates/op-host-native/src/widget_host/image_drop_target.rs @@ -58,9 +58,12 @@ impl WidgetHostNative { .editor_state .viewport .to_document(Point2D::new(x - cx0, y - cy0)); + // The fill variant so an empty placeholder box — which paints nothing + // and therefore opts out of the click hit-test — is still offered as a + // drop target instead of the image landing as a fresh sibling node. let path = self .layout_scene - .node_path_at_doc_point(doc_point, self.editor_state.viewport.zoom)?; + .node_path_at_doc_point_for_fill(doc_point, self.editor_state.viewport.zoom)?; self.editor_state.resolve_image_drop_target(&path) } diff --git a/vendor/jian b/vendor/jian index 18691c421..2edfc361c 160000 --- a/vendor/jian +++ b/vendor/jian @@ -1 +1 @@ -Subproject commit 18691c42169f59374d58d13065fc606fa6c39c24 +Subproject commit 2edfc361cff3f6f33174746c048002607d691d1c