Skip to content

UI Slider with a non-zero minimum value and Snap To Tick checked incorrectly subtracts the minimum value from any entered value #3108

@Acissathar

Description

@Acissathar

Release Type: GitHub

Version: master

Platform(s): Windows, but should be all

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Add a slider to a UI Page
  2. Set a minimum value above 0, a maximum value, a step of 1, and a tick frequency of Max - Min. e.g., Min of 5, Max of 40, Step of 1, Tick Frequency of 35.
  3. Check Snap to Ticks
  4. Set a value and note that it is always the value you entered minus the minimum value, even if this ends up being below the minimum.

Expected behavior
If I enter a value that is between min/max, it should remain that value, or if it not possible (e.g. 5.2 in the above scenario) it should snap the nearest viable tick, or in this case, 5.

Screenshots
Image

Log and callstacks
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions