mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
CR: simplify scroll check
This commit is contained in:
parent
a60dc2bfe7
commit
a27b04613d
1 changed files with 1 additions and 7 deletions
|
@ -159,13 +159,7 @@ private class CaptionView: UIView {
|
|||
|
||||
// Enable/disable scrolling depending on wether we've clipped
|
||||
// content in `intrinsicContentSize`
|
||||
if doesContentNeedScroll {
|
||||
if !isScrollEnabled {
|
||||
isScrollEnabled = true
|
||||
}
|
||||
} else if isScrollEnabled {
|
||||
isScrollEnabled = false
|
||||
}
|
||||
isScrollEnabled = doesContentNeedScroll
|
||||
}
|
||||
|
||||
override var intrinsicContentSize: CGSize {
|
||||
|
|
Loading…
Reference in a new issue