Commit 9a2e46e6 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt

only calculate image luminosity if requested

parent 099556c5
......@@ -124,7 +124,9 @@
return `${this.src}?${createQueryString(params)}`
},
updateLuminosity (event) {
this.luminosity = calculateImageLuminosity(event.target)
if (this.calculateImageLuminosity) {
this.luminosity = calculateImageLuminosity(event.target)
}
},
updateWidth () {
if (this.$refs.container) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment