mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
fixed bug with page up and page down scrolling in non-webkit
This commit is contained in:
parent
356d9586c2
commit
7634365a95
1 changed files with 12 additions and 8 deletions
|
|
@ -13,7 +13,7 @@ var CloudCommander;
|
|||
ENTER : 13,
|
||||
ESC : 27,
|
||||
|
||||
PPAGE_UP : 33,
|
||||
PAGE_UP : 33,
|
||||
PAGE_DOWN : 34,
|
||||
END : 35,
|
||||
HOME : 36,
|
||||
|
|
@ -196,11 +196,13 @@ var CloudCommander;
|
|||
* пропускаем путь и заголовки столбиков
|
||||
* выделяем верхий файл
|
||||
*/
|
||||
Util.setCurrentFile(lCurrentFile
|
||||
.parentElement.children[2]);
|
||||
|
||||
lCurrentFile = lCurrentFile
|
||||
.parentElement.children[2];
|
||||
|
||||
Util.setCurrentFile(lCurrentFile);
|
||||
|
||||
/* move scrollbar to top */
|
||||
Util.getPanel().scrollByLines(-100000000000000);
|
||||
lCurrentFile.scrollIntoView();
|
||||
|
||||
event.preventDefault();//запрет на дальнейшее действие
|
||||
}
|
||||
|
|
@ -210,11 +212,13 @@ var CloudCommander;
|
|||
*/
|
||||
else if( event.keyCode === lKEY.END){
|
||||
/* выделяем самый нижний файл */
|
||||
Util.setCurrentFile(lCurrentFile
|
||||
.parentElement.lastElementChild);
|
||||
lCurrentFile = lCurrentFile
|
||||
.parentElement.lastElementChild;
|
||||
|
||||
Util.setCurrentFile(lCurrentFile);
|
||||
|
||||
/* move scrollbar to bottom*/
|
||||
Util.getPanel().scrollByLines(100000000000000);
|
||||
lCurrentFile.scrollIntoView();
|
||||
|
||||
event.preventDefault();//запрет на дальнейшее действие
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue