Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeSlider Thumbs Gets Progressively More Misaligned #4392

Open
Dealman opened this issue Mar 22, 2023 · 0 comments
Open

RangeSlider Thumbs Gets Progressively More Misaligned #4392

Dealman opened this issue Mar 22, 2023 · 0 comments
Labels

Comments

@Dealman
Copy link

Dealman commented Mar 22, 2023

Describe the bug

This was brought up in #4113 and is not fixed, however @timunie does provide a fairly decent replacement. However it's not a 1:1 match in terms of styling, but it can sorted out relatively easily.

That said, this is indeed still a bug. For example;

<mah:RangeSlider Minimum="0" Maximum="255" LowerValue="130" UpperValue="255" TickPlacement="TopLeft" TickFrequency="5" IsSnapToTickEnabled="True"/>

Yields this result where the snapping of the LeftThumb is inaccurate.
image

Steps to reproduce

  1. Copy the aforementioned code
  2. Watch as either LeftThumb or RightThumb is aligned properly around the start/end, but as you change its value it gets more and more misaligned.

Expected behavior

LeftThumb and RightThumb should both be snapped to the position of their closest tick.

Actual behavior

LeftThumb and RightThumb gets misaligned the more it's moved around.

Environment

MahApps.Metro: v2.4.9
Windows: Windows 11 Build 22621 [Version 10.0.22621]
Visual Studio: Community 2022 [Version 17.4.4]
Target Framework: .NET 6

Screenshots

@Dealman Dealman added the Bug label Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant