mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
minor changes
This commit is contained in:
parent
ada75f48fb
commit
478a577f3d
1 changed files with 9 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue