Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d04dd2b

Browse files
committed
More loading threshold
1 parent ba705a8 commit d04dd2b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/client/app/modules/components/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class App extends React.Component {
3232
this.tryOpenFile();
3333

3434
var lang = getParameterByName('lang');
35-
console.log(lang);
35+
// console.log(lang);
3636
if (lang && typeof(lang) === 'string') {
3737
this.props.updateLocation(lang + '$');
3838
}

src/client/app/modules/components/file-viewer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class FileViewer extends React.Component {
5959

6060
scrollToFocusedLine() {
6161
var scrollAmount = (this.props.line-1)*20 + 16 - screen.height/4;
62-
console.log('scroll', scrollAmount, this.scrollbars);
62+
// console.log('scroll', scrollAmount, this.scrollbars);
6363
this.scrollbars.scrollTop(scrollAmount);
6464
}
6565

src/client/app/modules/components/search-form.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class SearchForm extends React.Component {
155155
// If no more to load, leave
156156
if(!((searchString || location) && (this.state.hasMore !== false))) return;
157157
// Custom Infinite Scrolling
158-
const heightThreshold = 300; // If scroll pass 300px above bottom, load more
158+
const heightThreshold = 600; // If scroll pass 600px above bottom, load more
159159
const el = e.currentTarget;
160160
if(el.scrollTop+el.clientHeight+heightThreshold > el.scrollHeight) {
161161
this.loadMore(hashes);

0 commit comments

Comments
 (0)