# Error of input on value change after changing the common ui viewport

**URL:** <https://forums.unrealengine.com/t/error-of-input-on-value-change-after-changing-the-common-ui-viewport/1432605>\
**Category:** Programming & Scripting\
**Tags:** gamepad, slider, Input, unreal-engine, UI, mouse-click, question\
**Created:** [November 29, 2023, 3:59pm UTC](https://forums.unrealengine.com/t/error-of-input-on-value-change-after-changing-the-common-ui-viewport/1432605 "2023-11-29T15:59:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Funkyalone](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Funkyalone](https://forums.unrealengine.com/u/Funkyalone)\
**Post date:** [November 29, 2023, 3:59pm UTC](https://forums.unrealengine.com/t/error-of-input-on-value-change-after-changing-the-common-ui-viewport/1432605/1 "2023-11-29T15:59:23Z")

</div>

Hi everyone, I have this problem, on Unreal 5.1 I prepared a menu that works well, there is a slider for gamma correction that also works with both the mouse and the gamepad, but if I press the face button bottom (A) while I am focus on slider the value changes immediately at the center point of the slider.

If I check the “mouse use steps” item in the slider details, when I press button A on the gamepad the slider moves towards the center of a step.

I tried to deconstruct the problem and I noticed that this happens as soon as the viewport class is changed

/Script/CommonUI.CommonGameViewportClient.

Does anyone know why this happens and how to fix the problem?
