1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 15:55:47 +01:00

Added :bmark -id, changed updating semantincs, update URLs in cache, and reported updates as updates rather than additions.

This commit is contained in:
Kris Maglione
2011-08-25 01:21:56 -04:00
parent e70cd8934d
commit 26ac4f3078
6 changed files with 77 additions and 52 deletions

View File

@@ -741,7 +741,9 @@ var DOM = Class("DOM", {
let win = this.document.defaultView;
if (force || !(rect && rect.bottom <= win.innerHeight && rect.top >= 0 && rect.left < win.innerWidth && rect.right > 0))
elem.scrollIntoView(alignWithTop !== undefined ? alignWithTop
elem.scrollIntoView(alignWithTop !== undefined ? alignWithTop :
rect.bottom < 0 ? true :
rect.top > win.innerHeight ? false
: Math.abs(rect.top) < Math.abs(win.innerHeight - rect.bottom));
});
},