paytonshaltis / freighter

🚂 Freighter is a highly-customizable HTML carousel library featuring a number of dynamic properties affecting carousel items and transitions. Most prominently, it gives complete control over the resizing method (for responsive layouts) as well as the wrapping method (for content display).
https://paytonshaltis.github.io/freighter
MIT License
1 stars 0 forks source link

Resize should be checked on carousel parent. #20

Closed paytonshaltis closed 1 year ago

paytonshaltis commented 1 year ago

Rather than checking for the window to be resized to change the size of a carousel, the parent element of the carousel should be checked. This would cover cases where there are resizeable containers within the document that contain carousels.

paytonshaltis commented 1 year ago

Here is the documentation for keeping track of if an element has changed sizes: