File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/feedback/src/screenshot/components Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export function ScreenshotEditorFactoryv2({
193193 }
194194 } , [ currentRect ] ) ;
195195
196- function drawBuffer ( ) : void {
196+ const drawBuffer = hooks . useCallback ( ( ) : void => {
197197 const ctx = imageBuffer . getContext ( '2d' , { alpha : false } ) ;
198198 const measurementDiv = measurementRef . current ;
199199 if ( ! imageBuffer || ! ctx || ! imageSource || ! measurementDiv ) {
@@ -222,7 +222,7 @@ export function ScreenshotEditorFactoryv2({
222222 drawRect ( rect , grayCtx ) ;
223223 } ) ;
224224 ctx . drawImage ( grayWashBufferBig , 0 , 0 ) ;
225- }
225+ } , [ drawCommands ] ) ;
226226
227227 const drawScene = hooks . useCallback ( ( ) : void => {
228228 const graywashCanvas = graywashRef . current ;
You can’t perform that action at this time.
0 commit comments