Search Issue Tracker

Active

Under Consideration for 1.15.X

Votes

1

Found in [Package]

1.15.0

Issue ID

ISXB-1739

Regression

No

Mouse delta accumulates error during panning when using Mouse.current.delta or <Mouse>/delta bindings in a polling context

Package: Input System

-

Reproduction steps:
1. Open the attached “IN-121192.zip” project
2. Open the “SampleScene” scene
3. Enter Play mode
4. Click “Use Mouse.current.delta” or “ Use action with bound mouse delta” button
5. Hover the mouse cursor over the red dot
6. Hold the middle mouse button and wiggle the mouse excessively within the colored window boundaries
7. End the pan interaction by placing the mouse cursor back on the red dot
8. Click the “Reset Camera Position” button
9. Observe the Camera position

Expected result: The difference in Camera position before and after 8th step is minimal
Actual result: The difference in Camera position before and after 8th step is significant, indicating accumulated error

Reproducible with: 1.11.1, 1.15.0 (6000.0.60f1, 6000.2.9f1, 6000.3.0b7, 6000.4.0a3)

Reproducible on: Windows 11
Not reproducible on: No other environment tested

Notes:
- Manual per‑frame delta calculations from Mouse.current.position do not exhibit this issue. This can be seen by clicking the “Manual Delta Calculation” on the 4th step instead
- Debugging suggests that InputControlExtensions.AccumulateValueInEvent() always receives Vector2.zero as oldDelta for Pointer.delta

Add comment

Log in to post comment