Misc code cleanup

This commit is contained in:
Travis Ralston 2019-03-28 10:43:01 -06:00
parent 9b64dd0cd7
commit 87ca3069bb
2 changed files with 3 additions and 4 deletions

View file

@ -88,10 +88,10 @@ export default class IndicatorScrollbar extends React.Component {
if (this.props.trackHorizontalOverflow) {
this.setState({
// Offset from absolute position of the container
leftIndicatorOffset: hasLeftOverflow ? `${this._scrollElement.scrollLeft}px` : 0,
leftIndicatorOffset: hasLeftOverflow ? `${this._scrollElement.scrollLeft}px` : '0',
// Negative because we're coming from the right
rightIndicatorOffset: hasRightOverflow ? `-${this._scrollElement.scrollLeft}px` : 0,
rightIndicatorOffset: hasRightOverflow ? `-${this._scrollElement.scrollLeft}px` : '0',
});
}
}