PeterStaev / nativescript-image-swipe

A NativeScript widget to easily :point_up_2: and :mag: through a list of images
Apache License 2.0
35 stars 21 forks source link

Incorrect view of images when changing orientation to portrait/horizontal on iOS #17

Closed VladimirAmiorkov closed 6 years ago

VladimirAmiorkov commented 7 years ago

When you rotate the phone/simulator on iOS you get an error [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction

and the "state" of the image-swipe is broken (it is between two images).

Evnironment

Tested with

How to reproduce

  1. Run the demo app on iOS, I used demo-ng
  2. Swipe left to get to the next image (the bears)
  3. Rotate Right (cmd + Right arrow). Now you see black screen (you are between the images, like a "mid swipe")
  4. Rotate Left (cmd + Left arrow). Now you can clearly see the images are stuck in mid swipe

Here are screenshots of the issue: 1. simulator screen shot oct 29 2017 8 00 34 pm 2. simulator screen shot oct 29 2017 8 00 52 pm 3. simulator screen shot oct 29 2017 8 00 56 pm 4. simulator screen shot oct 29 2017 8 01 00 pm