StPageFlip icon indicating copy to clipboard operation
StPageFlip copied to clipboard

CSS refresh issue

Open musaticsgilbert opened this issue 3 years ago • 2 comments

The v2.0.5 refactoring, while making the code somewhat cleaner, also introduced an issue with the rendering. See the diff here: https://github.com/Nodlik/StPageFlip/commit/1e302a8197b202e1f9a152a64dd600f06e4ef52f#diff-82e2514055cb74ebb7ad8048a1e13c101ca9276fe11790f259e165ac6eadd528

While the CSS renderer could check if the separate style changes really caused changes and only update those styles, setting the cssText directly always rewrites the styles. Since the render updates are going constantly due to the infinite loop, this makes development really hard because in the development console, while you'd try to change a style property it already renders the next frame.

Maybe it even causes performance issues but I didn't test it.

I downloaded the code and restored the state to before the update in my project and it works fine now.

musaticsgilbert avatar Apr 15 '21 10:04 musaticsgilbert

Same issue here. CSS is refreshing continuously so I can't inspect element styles. You can confirm whether it is refreshing in the CSS computed tab. In the computed tab, you can see nothing.

webdeveloper0429 avatar Jul 06 '21 14:07 webdeveloper0429

I have also encountered this issue. If nothing changes then a redraw should not need to be done. Is there a fix available?

nicksen782 avatar Sep 10 '21 02:09 nicksen782