1
0

fix: throttle updating on browser's animation frame (#4)

This commit is contained in:
Renaud Merle
2020-03-27 08:38:00 +01:00
committed by GitHub
parent a8bd20e5ad
commit 73dafd1a80

View File

@@ -99,7 +99,7 @@ export default {
if (this.autoresize) {
let resizeCallback = () => {
this.update()
window.requestAnimationFrame(this.update)
}
addListener(this.$el, resizeCallback)
this.unregisterResizeCallback = () => {