Setting scrollEnalbed=NO while animating permanently disables scrolling

Originator:vladimir.fleurima
Number:rdar://14814450 Date Originated:22-Aug-2013 06:09 PM
Status:Open Resolved:NO
Product:iPhone SDK Product Version:7 seed 5
Classification:Serious Bug Reproducible:Always
 
Summary:
Setting scrollEnabled to NO while animating & scrolling prevents the view from receiving further touch events, even though scrollEnabled is set to YES later on.

Steps to Reproduce:
1. Run sample project on device.
2. Scroll textview & don't lift finger.
3. Press "Animate textview" button at top left.

Expected Results:
The animation block sets scrollEnabled=NO and the completion block sets scrollEnabled=YES. One expects that scrolling would work after the completion block executes.

Actual Results:
The text view doesn't seem to respond to touch events. I added a target-action pair to its gesture recognizer for logging, and it stops outputting messages after the bug is triggered.

Doing introspection in the debugger, the text view's scrollEnabled and userInteractionEnabled property are both set to YES. Also, the text view's pan gesture recognizer is still enabled.

Regression:

Notes:
Sample project attached.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!