Skip to content

Commit

Permalink
Merge pull request #226 from vvit/passthrough-fix
Browse files Browse the repository at this point in the history
Passthrough taps should be detected only within view bounds
  • Loading branch information
Vodolazkyi authored Apr 17, 2017
2 parents c33fb3c + d539d2d commit 6aae65f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Pod/Classes/KolodaView/KolodaView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,12 @@ open class KolodaView: UIView, DraggableCardDelegate {
return super.point(inside: point, with: event)
}

return visibleCards.count > 0
if super.pointInside(point, withEvent: event) {
return visibleCards.count > 0
}
else {
return false
}
}

// MARK: Cards managing - Insertion
Expand Down

0 comments on commit 6aae65f

Please sign in to comment.