Closed GeorgeStrakhov closed 8 years ago
@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 https://github.com/matejlatin/Gutenberg/issues/40#issuecomment-218707512
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 https://github.com/matejlatin/Gutenberg/issues/40#issuecomment-218721240
Sorry for late. Here you go: https://github.com/matejlatin/Gutenberg/pull/42
@GeorgeStrakhov thanks.
Suggest to add a debounced onresize hook to recalculate image sizes.