Hello, I try to do an overdrag effect on a PageComponent. I limited overdrag to 0. If a user overdrags on the first or last page of the component, this page should not move but scale up, depending on the distance of the attempted swipe.
I played with the Utils.modulate function, but I don’t know how to read the attempted movement of the finger. I tried it e.g. like this:
pageComp.on Events.SwipeRight, (event) -> if pageComp.currentPage.name is "dayCard0" print event.distance pageComp.scale = Utils.modulate(event.distance, [0, 800], [1,2], true)