Implement ctrl-z/ctrl-y (#16)
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: https://git.siklos-chaneru.duckdns.org/Siklos/svg-layout-designer-react/pulls/16
This commit is contained in:
Siklos 2022-08-05 17:29:16 -04:00
parent 293af45144
commit ccdaaeec73
2 changed files with 26 additions and 2 deletions

View file

@ -36,11 +36,11 @@ export class SVG extends React.PureComponent<ISVGProps> {
}
componentDidMount(): void {
window.addEventListener('resize', this.resizeViewBox.bind(this));
window.addEventListener('resize', () => this.resizeViewBox());
}
componentWillUnmount(): void {
window.removeEventListener('resize', this.resizeViewBox.bind(this));
window.removeEventListener('resize', () => this.resizeViewBox());
}
render(): JSX.Element {