Support delayed stabilisation for simple list#167
Support delayed stabilisation for simple list#167albertogasparin wants to merge 1 commit intocaseywebdev:masterfrom
Conversation
| } | ||
|
|
||
| this.updateFrame(); | ||
| if (type === 'simple' && stableFrameDelay) { |
There was a problem hiding this comment.
I don't think we need to restrict this prop to the 'simple' list type. It seems like it could potentially be used for 'variable' or 'uniform' as well.
There was a problem hiding this comment.
Well, based on my interpretation of the documentation, on variable you have to provide the height, so animating your elements should not interfere with it.
About uniform, I've tried to enable it on but it didn't work out of the box. So, if you think it might be useful I might give it a second try (but I might need to touch more code).
| window.removeEventListener('resize', this.updateFrame); | ||
| this.scrollParent.removeEventListener('scroll', this.updateFrame, PASSIVE); | ||
| this.scrollParent.removeEventListener('mousewheel', NOOP, PASSIVE); | ||
| clearTimeout(this.updateFrameTimeoutId); |
There was a problem hiding this comment.
Let's check if this.updateFrameTimeoutId exists first. I believe some JS interpreters throw when trying to clearTimeout on undefined.
|
Hey guys, any updates on this PR? |
|
I think we need to confirm which types this can work with. |
|
Would a fix like this be needed for |
In order to allow items animation
3d60890 to
8664305
Compare
Add
stableFrameDelayprop for simple list in order to allow items animation.Closes #166