You've already forked vue-clamp
fix: throttle updating on browser's animation frame (#4)
This commit is contained in:
@@ -99,7 +99,7 @@ export default {
|
||||
|
||||
if (this.autoresize) {
|
||||
let resizeCallback = () => {
|
||||
this.update()
|
||||
window.requestAnimationFrame(this.update)
|
||||
}
|
||||
addListener(this.$el, resizeCallback)
|
||||
this.unregisterResizeCallback = () => {
|
||||
|
||||
Reference in New Issue
Block a user