Container clicks: the stuck-drag test joins the module's tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-26 11:38:39 +01:00
parent 87e3df5331
commit 78bfe74465
2 changed files with 1 additions and 7 deletions
@@ -275,11 +275,6 @@ mod tests {
Release::Click(Input::QuickMove)
);
}
}
#[cfg(test)]
mod stuck_tests {
use super::*;
/// A press whose release never arrives (the pointer left the window, or
/// the screen closed first) leaves `isQuickCrafting` set; the next screen
+1 -2
View File
@@ -4734,8 +4734,7 @@ impl Game<'_> {
if capture {
// The inventory's screens are behind us: no drag survives them.
self.reset_inventory_clicks();
}
if !capture {
} else {
self.stop_mining();
}
// The real pointer takes over from an agent's.