Skip to content

Commit

Permalink
Removed some GPU accelerated properties to minimize VRAM usage
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Aug 25, 2019
1 parent dc58f2a commit 467c94a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class Slider extends Component {
const min = (this.props.min || 0) * 1
const max = (this.props.max || 100) * 1
const level = this.cap((this.props.level || 0) * 1)
return { transform: "scaleX(" + (0 + (((level - min) * (100 / (max - min))) * 0.01)) + ")" }
return { width: (0 + (((level - min) * (100 / (max - min))))) + "%" }
}

constructor(props) {
Expand Down
1 change: 0 additions & 1 deletion src/css/panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ body {
opacity: 0;
transition: opacity 0.2s, transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
transform: translateY(100%);
will-change: transform, opacity;
pointer-events: none;
}

Expand Down
3 changes: 0 additions & 3 deletions src/css/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
top: 50%;
left: 0px;
margin-top: -1px;
will-change: transform;
transform: scaleX(0);
transform-origin: 0 50%;
pointer-events: none;
}

Expand Down

0 comments on commit 467c94a

Please sign in to comment.