From 079e4f674de3c881cf626bf167d3556fd968b340 Mon Sep 17 00:00:00 2001 From: giomfo Date: Tue, 3 Feb 2015 15:54:19 +0100 Subject: [PATCH] Console - Display Event JSON: Fix issue during long press location handling. --- matrixConsole/ViewController/RoomViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrixConsole/ViewController/RoomViewController.m b/matrixConsole/ViewController/RoomViewController.m index da0a172d2..840133af2 100644 --- a/matrixConsole/ViewController/RoomViewController.m +++ b/matrixConsole/ViewController/RoomViewController.m @@ -541,10 +541,10 @@ NSString *const kCmdResetUserPowerLevel = @"/deop"; // Look for the selected component CGPoint longPressPoint = [longPressGestureRecognizer locationInView:view]; - CGFloat yPosition = ROOM_MESSAGE_TEXTVIEW_MARGIN; RoomMessageComponent *component = [message.components objectAtIndex:0]; selectedEvent = component.event; + [message checkComponentsHeight]; for (component in message.components) { if (longPressPoint.y < yPosition) { break;