mapbox / mapbox-gl-compare

Swipe and sync between two maps
ISC License
148 stars 42 forks source link

Horizontal has no sliding end run #29

Closed markusand closed 4 years ago

markusand commented 4 years ago

When using it in horizontal mode, slider doesn't stop at the end (bottom) and continues swiping out of the container box. out_of_container

-- Edit -- I now see there is a related issue #12.

However, the issue continues when container resize is triggered by a DOM element instead of window, for example in flexbox collapse/expand. I ended up creating a helper directive with ResizeObserver to manage it.