[TIMOB-1493] iOS: MapView user interaction disabled when removing event listener
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-07-25T17:26:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Goran Skledar |
Assignee | Neeraj Gupta |
Created | 2011-04-15T02:54:15.000+0000 |
Updated | 2012-07-26T22:20:46.000+0000 |
Description
If you attach an event listener to a MapView and then remove it, the MapView will stay frozen, e.g. no user interaction will be possible.
To reproduce the problem, run the attached app.js file and try this:
- Click the "Add listener" button
- Note you can move and pinch the map
- Click the "Remove listener" button
- MapView "freezes", you are not able to move or pinch the map.
The issue seems to come from
handleListenerRemovedWithEvent in
TiUIView.m, specifically this part:
self.userInteractionEnabled = NO;
self.multipleTouchEnabled = NO;
User interaction should probably stay enabled with MapView even
when there aren't any touch event listeners attached.Attachments
File | Date | Size |
---|---|---|
app.js | 2011-04-15T02:54:16.000+0000 | 795 |
Cannot reproduce in SDK 2.2.0.014b86f, iPhone Sim 5.1.