Skip to content

Commit

Permalink
fix(UIScrollView): assert on interaction when view is hidden.
Browse files Browse the repository at this point in the history
This fixes the bug reported on this issue: #2834.
  • Loading branch information
asafkorem committed Nov 29, 2021
1 parent f33927a commit 3124c1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions detox/ios/Detox/Actions/UIScrollView+DetoxActions.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3124c1a

Please sign in to comment.