Skip to content

Commit

Permalink
Fix infinite loop bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wtmoose committed Mar 6, 2017
1 parent 9ea34c5 commit a7d259f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SwiftMessages/MessageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ open class MessageView: BaseView, Identifiable {
// Only accept touches within the background view. Anything outside of the
// background view's bounds should be transparent and does not need to receive
// touches. This helps with tap dismissal when using `DimMode.gray` and `DimMode.color`.
return backgroundView.point(inside: point, with: event)
return backgroundView == self
? super.point(inside: point, with: event)
: backgroundView.point(inside: point, with: event)
}

/*
Expand Down

0 comments on commit a7d259f

Please sign in to comment.