mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-02 15:21:57 -04:00
...
This commit is contained in:
parent
c692fb5ee0
commit
daccfa1f72
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user