diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt index 9f2a4ffb8b..6d421a0057 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryController.kt @@ -1118,6 +1118,9 @@ class LibraryController( } fun search(query: String?): Boolean { + if (query != this.query && !query.isNullOrBlank()) { + binding.libraryGridRecycler.recycler.scrollToPosition(0) + } this.query = query ?: "" if (this.query.isNotBlank() && adapter.scrollableHeaders.isEmpty()) { searchItem.string = this.query