mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c6bf118b38
commit
475a41d158
Binary file not shown.
@ -225,6 +225,8 @@ class PagedDisplay
|
||||
this.scroll_to_xpos(absleft(elem) + 5)
|
||||
|
||||
snap_to_selection: () ->
|
||||
# Ensure that the viewport is positioned at the start of the column
|
||||
# containing the start of the current selection
|
||||
sel = window.getSelection()
|
||||
r = sel.getRangeAt(0).getBoundingClientRect()
|
||||
node = sel.anchorNode
|
||||
|
Loading…
x
Reference in New Issue
Block a user