Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Defect. Disappear all carousel elements. #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

developer510
Copy link

For some mobile tablets, when we move to last page in portrait mode, which has one element and after that we change orientation to landscape, all elements just disappear (For example: Apple iPad 3, iOS 8.3)
That happened, because some index, scope.carouselIndex do not have time to recalculate.
I added 'debounce' pattern for 'orientationchange' event
( https://css-tricks.com/the-difference-between-throttling-and-debouncing/ )

For some mobile tablets, when we move to last page in portrait mode, which has one element and after that we change orientation to landscape, all elements just disappear (For example: Apple iPad 3, iOS 8.3)
That happened, because some index, scope.carouselIndex do not have time to recalculate.
I added 'debounce' pattern for 'orientationchange' event
( https://css-tricks.com/the-difference-between-throttling-and-debouncing/ )
@developer510
Copy link
Author

For some mobile tablets, when we move to last page in portrait mode, which has one element and after that we change orientation to landscape, all elements just disappear (For example: Apple iPad 3, iOS 8.3)
That happened, because some index, scope.carouselIndex do not have time to recalculate.
I added 'debounce' pattern for 'orientationchange' event
( https://css-tricks.com/the-difference-between-throttling-and-debouncing/ )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant