GUI: RTL: Fix mouse movements for slider when nortl
This commit is contained in:
parent
988f6fa03f
commit
ef99424792
1 changed files with 3 additions and 0 deletions
|
@ -732,6 +732,9 @@ SliderWidget::SliderWidget(GuiObject *boss, const Common::String &name, const ch
|
||||||
}
|
}
|
||||||
|
|
||||||
void SliderWidget::handleMouseMoved(int x, int y, int button) {
|
void SliderWidget::handleMouseMoved(int x, int y, int button) {
|
||||||
|
if (g_gui.useRTL() && _useRTL == false) {
|
||||||
|
x = _w - x; // If internal flipping is off, adjust the mouse to behave as if it were LTR.
|
||||||
|
}
|
||||||
if (isEnabled() && _isDragging) {
|
if (isEnabled() && _isDragging) {
|
||||||
int newValue = posToValue(x);
|
int newValue = posToValue(x);
|
||||||
if (newValue < _valueMin)
|
if (newValue < _valueMin)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue