Closed yairEO closed 3 years ago
Thanks Yair, that's a good point. I think we can solve this by maintaining the previous coordinates through shared
, and only calling update
when the coordinates change.
BTW, This is an issue not just for snap()
, I assume contain()
suffers from the same issue.
:tada: This issue has been resolved in version 1.3.0-next.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 1.3.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Steps to reproduce:
update
callback is fired many times, even through the component hasn't moved.https://user-images.githubusercontent.com/845031/117292532-fedae900-ae78-11eb-8cf1-c7e4e372706c.mp4
It's worth internally wrapping the callback with requestAnimationFrame if not already done