mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-11-05 14:13:23 +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() {
|
render() {
|
||||||
const { state, classes } = this.props;
|
const { state, classes } = this.props;
|
||||||
this.update(state);
|
this.update(state);
|
||||||
this.renderScene();
|
rafOnce(this.renderScene);
|
||||||
return (
|
return (
|
||||||
<div className={classes.container}>
|
<div className={classes.container}>
|
||||||
<ReactResizeDetector handleWidth handleHeight onResize={this.resizeHandler} />
|
<ReactResizeDetector handleWidth handleHeight onResize={this.resizeHandler} />
|
||||||
|
Loading…
Reference in New Issue
Block a user