mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
use raf to render
This commit is contained in:
parent
c36e36540d
commit
595327da17
@ -218,7 +218,7 @@ class D3Panel extends React.Component {
|
||||
render() {
|
||||
const { state, classes } = this.props;
|
||||
this.update(state);
|
||||
this.renderScene();
|
||||
rafOnce(this.renderScene);
|
||||
return (
|
||||
<div className={classes.container}>
|
||||
<ReactResizeDetector handleWidth handleHeight onResize={this.resizeHandler} />
|
||||
|
Loading…
Reference in New Issue
Block a user