OnGUIfunction on my EditorWindow update the values late

hello guys I am working on custom editor and I face this problem. When I debug those values on the picture they are changing but the slider react to the changment of the values soooo late.

also you can see this video the debug change but the slider values didn’t change.

gnm06u

and this is the full code
www.paste.ofcode.org/3adp4atJhJLeFarSPc7LQ6d

Perhaps this is because you react only to the ScrollWheel event but you use some sort of “mouse value” which may not actually be the scroll wheel movement but rather the mouse position delta?

Something tells me that combining the Event.current with controls is probably not the right way to do it.

it’s not the problem even tho when I test it multiple times I am sure that that value refer to the actual wheel movement.
The problem is the value is changing on debug but it’s not changing on the actual EditorGUILayout.MinMaxSlider