minor changes

This commit is contained in:
coderaiser 2012-07-24 10:49:16 -04:00
parent ada75f48fb
commit 478a577f3d

View file

@ -37,7 +37,15 @@ CloudCommander.keyBinding=(function(){
lCurrentFile.className='';
/* и выделяем предыдущую строку*/
lCurrentFile.previousSibling.className = CloudCommander.CURRENT_FILE;
console.log(lCurrentFile.previousSibling.offsetTop);
/* if we on the bootom of
* the screan then
* moving down the scroolbar
*/
var lTop = lCurrentFile.previousSibling.offsetTop;
lTop%CloudCommander.HEIGHT < 10 &&
lCurrentFile.parentElement.scrollBy(2);
event.preventDefault();
}
}