mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-27 09:12:34 -04:00
...
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user