Skip to content

[BUG] #69 regression (Overly-slow mouse scroll wheel) #95

Description

@n00mkrad

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:

  1. Make any scrollable uimgui
  2. Scroll
  3. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions