Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class HyperList {
throw new Error('HyperList requires a valid DOM Node container');
}

this._element = element;
this.element = element;

const config = this._config;

Expand Down Expand Up @@ -210,12 +210,12 @@ export default class HyperList {
return config.overrideScrollPosition();
}

return this._element.scrollTop;
return this.element.scrollTop;
}

_renderChunk() {
const config = this._config;
const element = this._element;
const element = this.element;
const scrollTop = this._getScrollPosition();
const screenItemsLen = this._screenItemsLen;
const getRow = this._getRow.bind(this);
Expand Down