mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 09:26:28 +02:00
When dragging the slider handle left/down, the handle would snap to lower value with the slightest move of the mouse. When dragging to the right/up however, it would take a lot more movement to cause a change in value. This asymmetry made it feel really awkward to drag the slider. It was caused by always rounding down using a cast to int. By rounding to the nearest integer first, we ensure symmetric behavior.
7.5 KiB
7.5 KiB