File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ class InfiniteTree extends events.EventEmitter {
344344 removeNode ( node ) {
345345 // TODO
346346 }
347- // Scroll to this node.
347+ // Set the current scroll position to this node.
348348 // @param {object } node
349349 // @return {number } Returns the vertical scroll position, or -1 on error.
350350 scrollToNode ( node ) {
@@ -361,7 +361,7 @@ class InfiniteTree extends events.EventEmitter {
361361 const rowHeight = ( firstChild && firstChild . offsetHeight ) || 0 ;
362362 return this . scrollTop ( nodeIndex * rowHeight ) ;
363363 }
364- // Get or set the current vertical position of the scroll bar.
364+ // Get/ set the current vertical position of the scroll bar.
365365 // @param {number } [value] An integer indicating the new position to set the scroll bar to.
366366 // @return {number } Returns the vertical scroll position.
367367 scrollTop ( value ) {
You can’t perform that action at this time.
0 commit comments