From 9d0b67450db99d2653ac45a9150b2f2817391b88 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Fri, 8 May 2015 14:53:39 -0500 Subject: [PATCH] #1481 - Replacing flushAt with eventQueue count of upper range limit --- platform/ios/MGLMapboxEvents.m | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index fe19291ab..d49adab6c 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -408,14 +408,15 @@ NSString *const MGLEventGestureRotateStart = @"Rotation"; __block NSArray *events; - NSUInteger upper = strongSelf.flushAt; - if (strongSelf.flushAt > [_eventQueue count]) { - if ([_eventQueue count] == 0) { - return; - } - upper = [_eventQueue count]; - } - + NSUInteger upper = [_eventQueue count]; +// if (strongSelf.flushAt > [_eventQueue count]) { +// if ([_eventQueue count] == 0) { +// return; +// } +// upper = [_eventQueue count]; +// } + NSLog(@"upper = %d", upper); + // Create Array of Events to push to the Server NSRange theRange = NSMakeRange(0, upper); events = [_eventQueue subarrayWithRange:theRange];