You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, I have 10 items. In landscape, I swipe to the 9-th item. After I rotate the device to portrait, the current shown item becomes 7-th item...
The reason is that when 9-th item is shown in landscape, the scroll view is: contentOffset: {8192, 0}; contentSize: {10240, 768}>
After I change it to the portrait, updateScrollViewDimensions will be called changing the content size to {7680, 1024}, and the contentOffset is being changed to {6912, 0} by UIKit automatically, thus SwipeView.scrollViewDidScroll will be called where the the _scrollOffset is being updated to a wrong value...
The text was updated successfully, but these errors were encountered:
For example, I have 10 items. In landscape, I swipe to the 9-th item. After I rotate the device to portrait, the current shown item becomes 7-th item...
The reason is that when 9-th item is shown in landscape, the scroll view is:
contentOffset: {8192, 0}; contentSize: {10240, 768}>
After I change it to the portrait,
updateScrollViewDimensions
will be called changing the content size to{7680, 1024}
, and the contentOffset is being changed to {6912, 0} by UIKit automatically, thusSwipeView.scrollViewDidScroll
will be called where the the_scrollOffset
is being updated to a wrong value...The text was updated successfully, but these errors were encountered: