Skip to content

Scroll to the fastest node after sorting by test result - #136

Merged
Mahdi-zarei merged 3 commits into
throneproj:mainfrom
Fasdeq13:scroll-to-fastest
Nov 13, 2026
Merged

Mahdi-zarei merged 3 commits into
throneproj:mainfrom
Fasdeq13:scroll-to-fastest

Conversation

@Fasdeq13

@Fasdeq13 Fasdeq13 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Closes #134.

Previously, when the list was sorted based on URL test results, it would remain in its current position; users had to manually scan the list to find the fastest server (which would now be at the top, but might be out of view if the user was further down the list).

Now, after sorting from the test panel, the list waits to reload in the new order and then automatically scrolls to the fastest node. If the search bar is open or an item is currently selected, no scrolling occurs, ensuring the user's context is not disrupted.

Changes were made to two files: TestPanelController (via the onSorted callback) and ConfigurationFragment (adding revealSorted, which leverages the existing revealProfile method).

Replaced onVisibilityChanged with onSorted callback to handle sorting events.
Added a callback for visibility changes of the panel.
Added a method to reveal the sorted profile after sorting in the test panel.
@Mahdi-zarei
Mahdi-zarei merged commit ac24817 into throneproj:main Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

按URL测速排序后自动下滑列表,自动定位到速度最快的节点

2 participants