mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 16:22:39 +00:00
Console - Display Event JSON: Fix issue during long press location handling.
This commit is contained in:
parent
68081a0eda
commit
079e4f674d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue