diff --git a/src/App.css b/src/App.css index 04abfb995c6e6ed8d3aea602012ffe0abbb6ae89..e4f85bf6d0ed552a0910b9008038c02385a48bbe 100644 --- a/src/App.css +++ b/src/App.css @@ -25,6 +25,7 @@ .level-entity { position: absolute; z-index: 10; + image-rendering: crisp-edges; } .render-controls { diff --git a/src/App.js b/src/App.js index 705702ac8a917838b6355870fe36b143376b9301..18a49bae60f994821a6f78f8bb489a0a0ecf7ebb 100644 --- a/src/App.js +++ b/src/App.js @@ -42,7 +42,10 @@ class App extends Component<{}> { ); } - set = (name, value = null) => e => this.setState(s => ({ [name]: value && value.call ? value(s) : value || e.currentTarget.value })) + set = (name, value = null) => e => { + const targetValue = e.currentTarget.value + this.setState(s => ({ [name]: value && value.call ? value(s) : value || targetValue })) + } } export default App;