Skip to content
Commit 8f3f3a6c authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Move actual generation of the blurred image to its own helper script



As the "blur" operation returns a promise it needs to be ensured that
the elements will not be used after the component was destroyed.

Similarly the background should be restored after getting the "raw"
size of the image element to prevent an empty background to be shown
while the new background is being generated (although in practice this
will not happen due to "blur" still generating the image in the UI
thread, but it will be needed once moved to a worker)

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 3139aea9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment