Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
I've just added the option normalize to let you activate another slide when you click it and the all slides are in viewport. It's is useful when using 2 Swipers, one as pagination.
I somehow still have an issue with that. Whenever screen orientation is being changed, the active index is wrong. Here is a live example (I've added some debug on slideChange and resize): https://www.mosam-arts.com/en/portfolio/snapshots/
This is when it's happening:
Using debug I can see, that before actual on: resize event occurs, the active slide is miscalculated and the miscalculation is being spread across both afterwards:
-- swiped to slide 10 --
Initialization (had to uglify):