mirror of https://github.com/zulip/zulip.git
lightbox_canvas: Clear canvas with less obfuscation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
c440fc714d
commit
0ad8fff35d
|
@ -215,7 +215,7 @@ const funcs = {
|
|||
const w = canvas.width * meta.zoom;
|
||||
const h = canvas.height * meta.zoom;
|
||||
|
||||
canvas.width = canvas.width;
|
||||
context.clearRect(0, 0, canvas.width, canvas.height);
|
||||
context.imageSmoothingEnabled = false;
|
||||
|
||||
context.drawImage(meta.image, x, y, w, h);
|
||||
|
|
Loading…
Reference in New Issue