# (UMG) 'Step Size' in Sliders is broken

**URL:** <https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721>\
**Category:** UI\
**Tags:** slider, unreal-engine, bug-report, Widget, question, UMG\
**Created:** [November 4, 2017, 9:59am UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721 "2017-11-04T09:59:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4aeebc03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4aeebc03](https://forums.unrealengine.com/u/anonymous_user_4aeebc03)\
**Post date:** [November 4, 2017, 9:59am UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/1 "2017-11-04T09:59:11Z")

</div>

1. New Project
2. New Widget Bp
3. Slider & modify _Step Size_ to 0.1 or sth
4. Add widget to viewport & Play
5. Notice how the Step Size has absolutely 0 effect & if you print the output of the Slider OnValueChanged it always prints 0.000001 values…

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 4, 2017, 11:39am UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/2 "2017-11-04T11:39:03Z")

</div>

If you read the tooltip of _StepSize_ you’ll notice it only works with keyboard/controller - you’re probably using mouse for this atm. _StepSize_ allows you to use it as a variable for calculating new slider position when keyboard has the focus.

You’d need to write a bit of logic to have the mouse skip to the next value.

Besides, seeing 0.000001… is a standard float rounding error. See [here](https://www.youtube.com/watch?v=PZRI1IfStY0) for the best explanation ever in case you’re unfamiliar with the concept.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![SlimeQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlimeQ](https://forums.unrealengine.com/u/SlimeQ)\
**Post date:** [November 8, 2017, 5:25pm UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/3 "2017-11-08T17:25:02Z")

</div>

For anybody looking into this in the future, this solved the problem for me:

![219514-slidersnap.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/4/394c871e0ce5493158b85282100239f3f59592f3.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 8, 2017, 5:28pm UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/4 "2017-11-08T17:28:46Z")

</div>

Clever. Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![Ibraheem\_Ghazi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ibraheem\_Ghazi](https://forums.unrealengine.com/u/Ibraheem_Ghazi)\
**Post date:** [January 4, 2019, 4:54pm UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/5 "2019-01-04T16:54:37Z")

</div>

this is brilliant. thanks for sharing

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6a49141e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6a49141e](https://forums.unrealengine.com/u/anonymous_user_6a49141e)\
**Post date:** [January 24, 2019, 5:33pm UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/6 "2019-01-24T17:33:54Z")

</div>

Have you tried to just tick bMouseUsesStep?

---

<div class="post-metadata">

**Author:** ![rit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rit](https://forums.unrealengine.com/u/rit)\
**Post date:** [September 9, 2019, 7:39am UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/7 "2019-09-09T07:39:30Z")

</div>

Thanks man! 😃

---

<div class="post-metadata">

**Author:** ![DarkWave0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarkWave0](https://forums.unrealengine.com/u/DarkWave0)\
**Post date:** [November 30, 2020, 9:03pm UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/8 "2020-11-30T21:03:05Z")

</div>

imo the problem with this is that it changes the behaviour of a drag functionality to this:

If mouse cursor is to the right of the handle; ANY mouse movement will increase the value.  
If mouse cursor is to the left of the handle; ANY mouse movement will decrease the value.

So if the cursor is on the left side, moving the cursor to the right, will still lower the value.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7f600e19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7f600e19](https://forums.unrealengine.com/u/anonymous_user_7f600e19)\
**Post date:** [May 11, 2021, 11:01pm UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/9 "2021-05-11T23:01:50Z")

</div>

Thanks for this suggestion! It’s ALMOST perfect. Only issue is the ValueChanged event gets fired regardless of whether we stepped or not. It’d be nice if you only got a ValueChanged when the value changed… Not sure what is experiencing but it worked fine for me save for this issue. 4.25.5

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 12, 2021, 5:44am UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/10 "2021-05-12T05:44:29Z")

</div>

This was posted before certain features were available, these days you can do this:

 ![338592-01-stepsize.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/9/90915279a48a67dc726e1c5f9efa4e29ddd7e772.png)

 ![338593-02-step.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/9/d493c2010fd9953de1cb4078f0ee521587e11497.png)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/2/e52c3ecc45c48860cfcd69a56f43ab4760937eba.gif)](https://gyazo.com/7466d6b4349038e2f6b957f37222fa9d)

- _Previous Step_ is a new float

---

<div class="post-metadata">

**Author:** ![Sideshow932](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sideshow932](https://forums.unrealengine.com/u/Sideshow932)\
**Post date:** [October 5, 2022, 8:55pm UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/11 "2022-10-05T20:55:12Z")

</div>

You sir…are a genius!

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [May 8, 2024, 7:09pm UTC](https://forums.unrealengine.com/t/umg-step-size-in-sliders-is-broken/408721/12 "2024-05-08T19:09:09Z")

</div>

A (tiny bit) off-topic, but related.

Any ideas how to add text (number) that is displayed on (over) thumb?

Basically i want current value displayed over it. And thumb can be image or material (i need widget with text there).
