Skip to content

Releases: FunTechInc/use-shader-fx

v1.0.26

25 Dec 02:55
56aae94
Compare
Choose a tag to compare

DOMRects added to DomSyncerObject.

DOMRects contains an array of target DOMRects.
DomSyncer calculates the target DOMRect in rAF and changes the position of THREE.Mesh, but the browser's default scrolling process and rAF work separately, which can cause misalignment when scrolling. For DOM elements for which you want to completely synchronise the mesh position with the position of the mesh, you can match the position of the DomSyncerObject's DOMRects.