I had a layout over the NestedScrollView consuming the touch event and disable the scroll:
progressBarLayout.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
return true;
}
});
and to enable:
progressBarLayout.setOnTouchListener(null);