Skip to content

Commit

Permalink
ANDROID-13332 Allow NestedScrollWebView internal scrolling blocking p…
Browse files Browse the repository at this point in the history
…rogramatic configuration (#9)
  • Loading branch information
dpastor authored May 26, 2023
1 parent 9f806d8 commit 7632638
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,10 @@ public void setCoordinatorBottomMatchingBehaviourEnabled(boolean enabled) {
coordinatorLayoutChildHelper.setBottomMatchingBehaviourEnabled(enabled);
}

public void setBlockNestedScrollingOnInternalContentScrollsEnabled(boolean enabled) {
internalScrollDetector.setEnabled(enabled);
}

@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class InternalScrollDetector {
private var initialY: Float? = null
private var activePointerId: Int = INVALID_POINTER

private var isEnabled = false
private var isEnabled = true

fun setEnabled(enabled: Boolean) {
if (isEnabled != enabled) {
Expand Down

0 comments on commit 7632638

Please sign in to comment.