mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix order of scrollbar update when texture scale changes. Closes #2377
* We need to update the scrollbar bounds first based on the current zoom level, then change the scroll position. Otherwise the scroll will be visually correct but the scrollbars won't match.
This commit is contained in:
@@ -3338,11 +3338,11 @@ void TextureViewer::UI_SetScale(float s, int x, int y)
|
||||
newPos = QPoint((int)(newPos.x() * scaleDelta), (int)(newPos.y() * scaleDelta));
|
||||
newPos += QPoint(x, y);
|
||||
|
||||
setScrollPosition(newPos);
|
||||
|
||||
setCurrentZoomValue(m_TexDisplay.scale);
|
||||
|
||||
UI_CalcScrollbars();
|
||||
|
||||
setScrollPosition(newPos);
|
||||
}
|
||||
|
||||
void TextureViewer::setCurrentZoomValue(float zoom)
|
||||
|
||||
Reference in New Issue
Block a user