Only intercept transitions that were initiated interactively#8
Only intercept transitions that were initiated interactively#8kainosnoema wants to merge 1 commit intomasterfrom
Conversation
|
Good catch. I'm not 100% convinced that this will work reliably when dismissing non-interactively (I've seen instances of back buttons causing the keyboard to drop down during the left to view push, specifically the Notes app is really ugly about this). I'm not sure what the best solution is, however, as the Thanks for looking in to this! |
|
Welp, I was wrong about This fix still seems to work really well in the non-interactive back button case you mentioned, so I think it might still be the best solution. Can you think of another scenario where this would cause problems? |
`[UIViewControllerTransitionCoordinator initiallyInteractive]` returns true only if the transition is both animated and interactive. https://developer.apple.com/library/ios/documentation/uikit/reference/UIViewControllerTransitionCoordinatorContext_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIViewControllerTransitionCoordinatorContext/initiallyInteractive This fixes bugs caused by non-interactive transitions, some of which aren't even panning, such as modal presentation transitions. Another way to fix modal transitions whould be to check `presentationStyle`, but from what I can tell we only need to handle interactive transitions anyway. Signed-off-by: Evan Owen <kainosnoema@gmail.com>
This fixes a keyboard flash bug caused by non-interactive transitions, such as modal presentations. Another way to fix modal transitions whould be to check
presentationStyle, but from what I can tell we only need to handle interactive transitions anyway.[UIViewControllerTransitionCoordinator initiallyInteractive]returnstrue only if the transition is both animated and interactive, so it seems like the right thing to check.