Implement ctrl-z/ctrl-y (#16)
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
293af45144
commit
ccdaaeec73
2 changed files with 26 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue