p-lr / MapCompose

A fast, memory efficient Jetpack Compose library to display tiled maps, with support for markers, paths, and rotation.
Apache License 2.0
224 stars 20 forks source link

Fix scroll constraints when scrollOffsetRatio is used #81

Closed TimPushkin closed 2 years ago

TimPushkin commented 2 years ago

This seems to fix the issue with scroll constraints when scrollOffsetRatio is used I described in the first item in #80.

Before the change (cannot move the map to the top of the layout):

https://user-images.githubusercontent.com/71890197/200042300-eae6c5fd-08d0-4d4e-93df-b0b282e16d34.mp4

With the change applied:

https://user-images.githubusercontent.com/71890197/200042318-0d50ecce-04f2-4b91-a352-df9b4e0dffa2.mp4

p-lr commented 2 years ago

This is looking good, thanks!