Fix cached blur
This commit is contained in:
parent
5c179c9222
commit
0173965a75
@ -90,7 +90,9 @@ export default function blur(dataUri: string, radius: number = RADIUS, iteration
|
|||||||
} else {
|
} else {
|
||||||
canvas.width = cached.canvas.width;
|
canvas.width = cached.canvas.width;
|
||||||
canvas.height = cached.canvas.height;
|
canvas.height = cached.canvas.height;
|
||||||
canvas.getContext('2d').drawImage(cached.canvas, 0, 0);
|
cached.promise.then(() => {
|
||||||
|
canvas.getContext('2d').drawImage(cached.canvas, 0, 0, canvas.width, canvas.height);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user