{"record":{"id":"4088cd629ec3926f","repo":"slint-ui/slint","slug":"no-simulated-native-drag-in-flight","errorCode":null,"errorMessage":"no simulated native drag in flight","messagePattern":"no simulated native drag in flight","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/backends/testing/testing_backend.rs","lineNumber":393,"sourceCode":"    /// the final negotiated action.\n    pub fn simulate_native_drop(\n        &self,\n        target: &i_slint_core::api::Window,\n        position: LogicalPosition,\n    ) -> DragAction {\n        let action = self.deliver_native_drag(target, position, true);\n        WindowInner::from_pub(&self.window).report_drag_finished(action);\n        action\n    }\n\n    fn deliver_native_drag(\n        &self,\n        target: &i_slint_core::api::Window,\n        position: LogicalPosition,\n        drop: bool,\n    ) -> DragAction {\n        let (data, allowed) =\n            self.native_drag.borrow().clone().expect(\"no simulated native drag in flight\");\n        let mut event = DropEvent::default();\n        event.data = data;\n        event.position = position;\n        event.proposed_action =\n            i_slint_core::items::compute_proposed_action(Default::default(), allowed);\n        let event = if drop {\n            MouseEvent::Drop { event, allowed }\n        } else {\n            MouseEvent::DragMove { event, allowed }\n        };\n        WindowInner::from_pub(target).process_drag_event(event).unwrap_or(DragAction::None)\n    }\n}\n\nimpl WindowAdapterInternal for TestingWindow {\n    fn input_method_request(&self, request: i_slint_core::window::InputMethodRequest) {\n        self.ime_requests.borrow_mut().push(request)\n    }","sourceCodeStart":375,"sourceCodeEnd":411,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/backends/testing/testing_backend.rs#L375-L411","documentation":"Error \"no simulated native drag in flight\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/backends/testing/testing_backend.rs:393 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start a simulated native drag before trying to complete or drop it.","Check the drag simulation call ordering in the test."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016","analyzedAt":"2026-08-19T23:23:16.610Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}