Skip to content

v1.0.26

Compare
Choose a tag to compare
@takuma-hmng8 takuma-hmng8 released this 25 Dec 02:55
· 229 commits to main since this release
56aae94

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.