mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
78a80efdf1
commit
d72445d70f
@ -69,7 +69,7 @@ get_current_time = (target) -> # {{{
|
|||||||
|
|
||||||
viewport_to_document = (x, y, doc) -> # {{{
|
viewport_to_document = (x, y, doc) -> # {{{
|
||||||
win = doc.defaultView
|
win = doc.defaultView
|
||||||
x += if win.scrollX then win.scrollX else 0
|
x += if win.scrollX then win.scrollX else 0 # These can be NaN on IE
|
||||||
y += if win.scrollY then win.scrollY else 0
|
y += if win.scrollY then win.scrollY else 0
|
||||||
|
|
||||||
if doc != window.document
|
if doc != window.document
|
||||||
|
Loading…
x
Reference in New Issue
Block a user