Skip to content

Commit

Permalink
remove parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeseeq committed Jun 25, 2019
1 parent 3b4a04f commit 0292897
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/inner-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,15 @@ export class InnerSlider extends React.Component {
let childrenCount = React.Children.count(this.props.children);
const spec = { ...this.props, ...this.state, slideCount: childrenCount };
let slideCount = getPreClones(spec) + getPostClones(spec) + childrenCount;
let trackWidth = (100 / this.props.slidesToShow) * slideCount;
let trackWidth = 100 / this.props.slidesToShow * slideCount;
let slideWidth = 100 / slideCount;
let trackLeft =
(-slideWidth *
-slideWidth *
(getPreClones(spec) + this.state.currentSlide) *
trackWidth) /
trackWidth /
100;
if (this.props.centerMode) {
trackLeft += (100 - (slideWidth * trackWidth) / 100) / 2;
trackLeft += (100 - slideWidth * trackWidth / 100) / 2;
}
let trackStyle = {
width: trackWidth + "%",
Expand Down

0 comments on commit 0292897

Please sign in to comment.