Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(swiper): add safe-guards when user tries to zoom a slide without … #12931

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

kensodemann
Copy link
Member

Fixes #12861

Short description of what this resolves:

OP found this issue by forgetting to put image in slides with zoom="true", but in resolving this, I discovered that you would have the same issue if you had some slides with zoomable image and some slides without and the user accidentally did a zoom gesture on the slides without.

Changes proposed in this pull request:

  • Adds safeguards around the querying of the image and the container to make sure we actually have them before trying to do things with them

Ionic Version: 3.x (not sure if we would need to fix (or how) in 4.x as we are changing this a lot)

Fixes: #12861

@kensodemann kensodemann added this to the 3.7.2 milestone Sep 29, 2017
@kensodemann kensodemann merged commit e0c8309 into master Sep 29, 2017
@kensodemann kensodemann deleted the fix/swiperZoom branch September 29, 2017 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ion-slides use zoom="true" report errors
1 participant