Flutter-Bounty-Hunters / follow_the_leader

MIT License
13 stars 5 forks source link

Fix follower hit-testing (Resolves #7) #9

Closed angelosilvestre closed 1 year ago

angelosilvestre commented 1 year ago

Fix follower hit-testing. Resolves #7

Hit-testing the follower wasn't working correctly. The follower offset wasn't being considered.

This PR changes the hit-testing to apply the offset to the transform.

I also found a bug where the follower wasn't being painted until the screen was resized or the leader was dragged. I'm not sure if this fix could cause problems.

matthew-carroll commented 1 year ago

@angelosilvestre can you fix the conflicts that were just introduced by merging the log changes?

angelosilvestre commented 1 year ago

@matthew-carroll Done.