File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: deploy gh-pages
33on :
44 push :
55 branches :
6- - deploy
6+ - master
77
88jobs :
99 build-and-deploy :
Original file line number Diff line number Diff line change 1- import ResizeObserver from "resize-observer-polyfill" ;
1+ import ResizePolyfill from "resize-observer-polyfill" ;
22import { throttle } from "sketching-utils" ;
33
44import type { Editor } from "../editor" ;
@@ -33,6 +33,7 @@ export class Canvas {
3333 this . mask = new Mask ( editor , this ) ;
3434 this . graph = new Graph ( editor , this ) ;
3535 this . devicePixelRatio = Math . ceil ( window . devicePixelRatio || 1 ) ;
36+ const ResizeObserver = window . ResizeObserver || ResizePolyfill ;
3637 this . resizeObserver = new ResizeObserver ( this . onResize ) ;
3738 this . grab = new Grab ( this . editor , this ) ;
3839 this . insert = new Insert ( this . editor , this ) ;
You can’t perform that action at this time.
0 commit comments