This commit is contained in:
Kovid Goyal 2025-12-25 19:56:59 +05:30
parent c692fb5ee0
commit daccfa1f72
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2055,9 +2055,7 @@ class BookshelfView(MomentumScrollMixin, QAbstractScrollArea):
return -1
def book_row_at_position(self, x: int, y: int) -> int:
'''
Find which book is at the given position. x, y are in viewport coordinates.
'''
' Find which book is at the given position. x, y are in viewport coordinates '
book_id = self.book_id_at_position(x, y)
if book_id > 0:
if (row := self.row_from_book_id(book_id)) is not None: