sirinsidiator / ESO-LibAddonMenu

http://www.esoui.com/downloads/info7-LibAddonMenu.html
Artistic License 2.0
41 stars 20 forks source link

Text input value resets while scrolling over a slider #117

Closed sirinsidiator closed 4 years ago

sirinsidiator commented 4 years ago

When we change the value in a text field and scroll without applying the value by clicking outside or pressing enter, the value is reset when the mouse hits a slider and its value is changed instead.

We need to ensure the current control doesn't loose focus while scrolling and also make sliders ignore any input in that case, to avoid unintentional changes.

Instead of accepting scroll events whenever, we should limit it so the slider has to be clicked (focused) first. That would also solve the case when a user changes a text input and then immediately tries to change a slider via the scroll wheel.

Should check for other cases where inputs may loose focus too.