Fixed a bug in IE in which clicking a link sometimes caused the browser window to scroll down and then immediately back up.
This commit is contained in:
parent
25b2f2fe84
commit
d5efdf2665
3
NEWS
3
NEWS
|
@ -1,5 +1,8 @@
|
|||
1.5.6:
|
||||
* Added permalinks to blog and discussion forum posts.
|
||||
* Fixed a bug in Internet Explorer in which clicking a link sometimes caused
|
||||
the browser window to scroll to the destination note, only to immediately
|
||||
scroll back to the clicked link.
|
||||
|
||||
1.5.5: November 6, 2008
|
||||
* Improved speed of Luminotes Desktop by adding some database indices. This
|
||||
|
|
|
@ -241,6 +241,10 @@ Editor.prototype.highlight = function ( scroll ) {
|
|||
}
|
||||
}
|
||||
|
||||
// focusing the highlighted editor before scrolling to it prevents IE from deciding to
|
||||
// automatically scroll back to the link immediately afterwards
|
||||
this.focus();
|
||||
|
||||
if ( scroll ) {
|
||||
// if the editor is already completely on-screen, then there's no need to scroll
|
||||
var viewport_position = getViewportPosition();
|
||||
|
|
Reference in New Issue