Added galleries for web search results

This commit is contained in:
Ilya Laktyushin
2018-12-14 22:40:34 +04:00
parent feaaed3f41
commit 98de1f903f
46 changed files with 2874 additions and 1937 deletions

View File

@@ -221,7 +221,7 @@ class ChatMessageBubbleItemNode: ChatMessageItemView {
return .waitForSingleTap
}
for contentNode in strongSelf.contentNodes {
let tapAction = contentNode.tapActionAtPoint(CGPoint(x: point.x - contentNode.frame.minX, y: point.y - contentNode.frame.minY))
let tapAction = contentNode.tapActionAtPoint(CGPoint(x: point.x - contentNode.frame.minX, y: point.y - contentNode.frame.minY), gesture: .tap)
switch tapAction {
case .none:
break
@@ -1570,7 +1570,7 @@ class ChatMessageBubbleItemNode: ChatMessageItemView {
}
var foundTapAction = false
loop: for contentNode in self.contentNodes {
let tapAction = contentNode.tapActionAtPoint(CGPoint(x: location.x - contentNode.frame.minX, y: location.y - contentNode.frame.minY))
let tapAction = contentNode.tapActionAtPoint(CGPoint(x: location.x - contentNode.frame.minX, y: location.y - contentNode.frame.minY), gesture: gesture)
switch tapAction {
case .none, .ignore:
break
@@ -1629,7 +1629,7 @@ class ChatMessageBubbleItemNode: ChatMessageItemView {
selectAll = true
}
tapMessage = contentNode.item?.message
let tapAction = contentNode.tapActionAtPoint(CGPoint(x: location.x - contentNode.frame.minX, y: location.y - contentNode.frame.minY))
let tapAction = contentNode.tapActionAtPoint(CGPoint(x: location.x - contentNode.frame.minX, y: location.y - contentNode.frame.minY), gesture: gesture)
switch tapAction {
case .none, .ignore:
break