From: little-meow-meow <204685920+little-meow-meow@users.noreply.github.com> Date: Tue, 17 Jun 2025 02:39:04 +0000 (-0700) Subject: fix: no longer accidentally rotate held items (#38331) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c049852486102021cf6832936157992691e120ee;p=space-station-14.git fix: no longer accidentally rotate held items (#38331) Signed-off-by: little-meow-meow <204685920+little-meow-meow@users.noreply.github.com> --- diff --git a/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs b/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs index 5e6779193b..a7e130ccd6 100644 --- a/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs +++ b/Content.Client/UserInterface/Systems/Storage/StorageUIController.cs @@ -225,6 +225,10 @@ public sealed class StorageUIController : UIController, IOnSystemChanged().GetActiveHandEntity() == null) return; + // Do not rotate items unless we are either dragging them or hovering over a storage window. + if (DraggingGhost is null && UIManager.CurrentlyHovered is not StorageWindow) + return; + //clamp it to a cardinal. DraggingRotation = (DraggingRotation + Math.PI / 2f).GetCardinalDir().ToAngle(); if (DraggingGhost != null)