Flutter-Bounty-Hunters / follow_the_leader

MIT License
13 stars 5 forks source link

Add 'scale' to LeaderLink so that clients can fully account for transform (Resolves #21) #22

Closed matthew-carroll closed 1 year ago

matthew-carroll commented 1 year ago

Add 'scale' to LeaderLink so that clients can fully account for transform (Resolves #21)

After adding the scale property, I added the ability to get a global offset within the Leader by calling a new method called LeaderLink.getOffsetInLeader(). Technically, that method eliminates our current need for scale info, but I suppose scale might be relevant in the future.

I filed #21 because we were seeing scaling tap area problems in a proprietary app. As far as I can, follow_the_leader works as expected. This PR adds a demo that proves it. I'll look deeper into the proprietary app to see if there's a problem over htere.