Skip to content
5 changes: 5 additions & 0 deletions Packages/com.unity.inputsystem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ however, it has to be formatted properly to pass verification tests.
- Expanded editor and build insight analytics to cover ``.inputactions` asset editor usage, `InputSettings` and common component configurations.
- Added Input Setting option allowing to keep platform-specific scroll wheel input values instead of automatically converting them to a normalized range.

## [Unreleased] - 2024-07-04

### Fixed
- Fixed memory leak when the OnScreenStick component was destroyed.

## [1.8.2] - 2024-04-29

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ private void Start()
image.alphaHitTestMinimumThreshold = 0.5f;
}

private void OnDestroy()
{
if (m_UseIsolatedInputActions)
{
m_PointerDownAction.started -= OnPointerDown;
m_PointerDownAction.canceled -= OnPointerUp;
}
}

private void BeginInteraction(Vector2 pointerPosition, Camera uiCamera)
{
var canvasRectTransform = UGUIOnScreenControlUtils.GetCanvasRectTransform(transform);
Expand Down