matejlatin/Gutenberg

images squashed when resizing the window

GeorgeStrakhov opened this issue · 6 comments

Suggest to add a debounced onresize hook to recalculate image sizes.

@GeorgeStrakhov yup I'm aware of this problem. Thanks for the suggestion. What do you mean by "debounced"?

Sure. https://lodash.com/docs#debounce
This is just a performance-optimising measure - to make sure that browser
doesn't go crazy trying to run your resize function 60 times per second
while the window is being resized.

On Thu, May 12, 2016 at 12:35 PM Matej Latin notifications@github.com
wrote:

@GeorgeStrakhov https://github.com/GeorgeStrakhov yup I'm aware of this
problem. Thanks for the suggestion. What do you mean by "debounced"?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#40 (comment)

Awesome, we should definitely do it. Thanks @GeorgeStrakhov

No problem. A bit busy today, but can handle this and do a PR tomorrow.

On Thu, May 12, 2016 at 1:39 PM Matej Latin notifications@github.com
wrote:

Awesome, we should definitely do it. Thanks @GeorgeStrakhov
https://github.com/GeorgeStrakhov


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#40 (comment)

Sorry for late. Here you go: #42