mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6c70624381
commit
f12fc4c23e
@ -76,7 +76,9 @@ viewport_to_document = (x, y, doc) -> # {{{
|
|||||||
# We are in a frame
|
# We are in a frame
|
||||||
node = win.frameElement
|
node = win.frameElement
|
||||||
rect = node.getBoundingClientRect()
|
rect = node.getBoundingClientRect()
|
||||||
return viewport_to_document(rect.left, rect.top, node.ownerDocument)
|
[vx, vy] = viewport_to_document(rect.left, rect.top, node.ownerDocument)
|
||||||
|
x += vx
|
||||||
|
y += vy
|
||||||
return [x, y]
|
return [x, y]
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user