Describe the bug
Scrolling via mouse wheel is veeery, very slow. Refer to #69.
This was fixed in #88 but got broken again by Unity changing normalization to being the default in Unity 6000.0.9+.
This invalidated the compensation. The current package (7.1.0, f3d18ef) still includes the not-fix.
Workaround:
Have this run on startup: InputSystem.settings.scrollDeltaBehavior = InputSettings.ScrollDeltaBehavior.KeepPlatformSpecificInputRange;
To Reproduce
Steps to reproduce the behavior:
- Make any scrollable uimgui
- Scroll
- Watch it be very slow
Version/Branch of UImGui:
Latest master (f3d18ef)
Unity Version
6000.3.21f1 (6.3 LTS)
Render pipeline (HDRP / URP / Built-in)
URP
Expected behavior
It should scroll at a reasonable speed. Not at 1-2 pixels per input.
Additional context
Proposed fix:
private static float ScrollWheelScale =>
#if UNITY_6000_0_OR_NEWER
InputSystem.settings.scrollDeltaBehavior == InputSettings.ScrollDeltaBehavior.UniformAcrossAllPlatforms ? 1f : 1f / 120f;
#else
1f / 120f;
#endif
Describe the bug
Scrolling via mouse wheel is veeery, very slow. Refer to #69.
This was fixed in #88 but got broken again by Unity changing normalization to being the default in Unity 6000.0.9+.
This invalidated the compensation. The current package (7.1.0, f3d18ef) still includes the not-fix.
Workaround:
Have this run on startup:
InputSystem.settings.scrollDeltaBehavior = InputSettings.ScrollDeltaBehavior.KeepPlatformSpecificInputRange;To Reproduce
Steps to reproduce the behavior:
Version/Branch of UImGui:
Latest master (f3d18ef)
Unity Version
6000.3.21f1(6.3 LTS)Render pipeline (HDRP / URP / Built-in)
URP
Expected behavior
It should scroll at a reasonable speed. Not at 1-2 pixels per input.
Additional context
Proposed fix: