This change ensures that we are comparing rounded values when checking if the sheet should close.
Remember that snapTo has been rounded when validateSnapTo function was called.
@Temzasse Althought I've made some local tests and its working pretty fine, I'm not sure if this collides with any other expected behavior.
Let me know if I can help with something else.
Issue
When a user slowly drags the sheet to the bottom, the sheet does not always close as expected. You can see this behavior in the following video
https://user-images.githubusercontent.com/3205737/223282060-ad979fa6-a2f0-4603-9ed4-41e25abb9e7b.mp4
Solution
To fix this issue I made a very little adjustment.
From:
To:
This change ensures that we are comparing rounded values when checking if the sheet should close. Remember that
snapTo
has been rounded whenvalidateSnapTo
function was called.