From 3124c1af61e3683ab1815646257d992290023b22 Mon Sep 17 00:00:00 2001 From: Asaf Korem <55082339+asafkorem@users.noreply.github.com> Date: Mon, 29 Nov 2021 18:26:17 +0200 Subject: [PATCH] fix(UIScrollView): assert on interaction when view is hidden. This fixes the bug reported on this issue: #2834. --- detox/ios/Detox/Actions/UIScrollView+DetoxActions.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/detox/ios/Detox/Actions/UIScrollView+DetoxActions.m b/detox/ios/Detox/Actions/UIScrollView+DetoxActions.m index 1858e3830c..d18eb87fd0 100644 --- a/detox/ios/Detox/Actions/UIScrollView+DetoxActions.m +++ b/detox/ios/Detox/Actions/UIScrollView+DetoxActions.m @@ -266,6 +266,8 @@ - (void)dtx_scrollWithOffset:(CGPoint)offset normalizedStartingPoint:(CGPoint)no - (void)_dtx_scrollWithOffset:(CGPoint)offset normalizedStartingPoint:(CGPoint)normalizedStartingPoint strict:(BOOL)strict { + [self dtx_assertVisible]; + if(offset.x == 0.0 && offset.y == 0.0) { return;