Skip to content

Commit 9841db2

Browse files
committed
Patch store: scroll to top when search changes
1 parent 7115066 commit 9841db2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Dialogs/PatchStore.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,7 @@ struct PatchStore final : public Component
11041104
input.setJustification(Justification::centredLeft);
11051105
input.onTextChange = [this] {
11061106
patchContainer.filterPatches(input.getText());
1107+
contentViewport.setViewPositionProportionately(0.0f, 0.0f);
11071108
};
11081109
input.onFocusLost = [this] {
11091110
if (searchButton.isMouseOver()) {

0 commit comments

Comments
 (0)