Changeset 17907
- Timestamp:
- 08/19/08 22:17:14 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/scroll_div.js
r17906 r17907 53 53 54 54 // スクロール対象を変更 55 function shiftScrollElement ( ) {55 function shiftScrollElement (n) { 56 56 let idx = content.document.__div_scroller_index || 0; 57 57 let es = scrollableElements(); 58 idx++; 58 idx += (n || 1); 59 if (idx < 0) 60 idx = es.length - 1; 59 61 if (idx >= es.length) 60 62 idx = 0; … … 90 92 liberator.mappings.addUserMap( 91 93 [liberator.modes.NORMAL], 94 ['<Leader>k'], 95 'Scroll up', 96 function () scroll(-30) 97 ); 98 99 liberator.mappings.addUserMap( 100 [liberator.modes.NORMAL], 92 101 [']d'], 93 102 'Shift Scroll Element', 94 function () shiftScrollElement( )103 function () shiftScrollElement(1) 95 104 ); 96 105 97 scroll(100); 98 106 liberator.mappings.addUserMap( 107 [liberator.modes.NORMAL], 108 ['[d'], 109 'Shift Scroll Element', 110 function () shiftScrollElement(-1) 111 ); 99 112 100 113
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)