aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rect.coffee
diff options
context:
space:
mode:
authorgdh19952016-12-12 01:02:00 +0800
committergdh19952017-01-03 16:44:40 +0800
commit0338c08ed7a15e11363b6218da8cb495b769ecfa (patch)
treef558ecaba90ad74d208c7fec84a7c1163488ec62 /lib/rect.coffee
parentb12ed93d0b96df90511d3331e8a5f54e7b1b7da4 (diff)
downloadvimium-0338c08ed7a15e11363b6218da8cb495b769ecfa.tar.bz2
getViewportTopLeft: support zoomed static documentElement
if `document.documentElement` is zoomed, Vimium's hints `<div>` are also zoomed, and then `scrollY` may be not equal with viewport client rect's `top`. Example: * make the tab zoom level is 1, `documentElement`'s `zoom` style is 2 * open a page, scroll to the top left corner * press `f`, and all things are right * exit LinkHints mode, scroll down for 100px, and then press `f` * this time all hints has moved down 200px from the correct place
Diffstat (limited to 'lib/rect.coffee')
0 files changed, 0 insertions, 0 deletions