package com.scb.phone.view.custom.common; import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import androidx.core.widget.NestedScrollView; /* loaded from: classes5.dex */ public class CustomScrollView extends NestedScrollView { private boolean e; public CustomScrollView(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); this.e = true; } public CustomScrollView(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.e = true; } public CustomScrollView(Context context) { super(context); this.e = true; } @Override // android.view.View public void scrollBy(int i, int i2) { if (this.e) { super.scrollBy(i, i2); } } @Override // androidx.core.widget.NestedScrollView, android.view.View public void scrollTo(int i, int i2) { if (this.e) { super.scrollTo(i, i2); } } @Override // androidx.core.widget.NestedScrollView, android.view.ViewGroup public boolean onInterceptTouchEvent(MotionEvent motionEvent) { if (this.e) { return super.onInterceptTouchEvent(motionEvent); } return false; } @Override // androidx.core.widget.NestedScrollView, android.view.View public boolean onTouchEvent(MotionEvent motionEvent) { if (this.e) { return super.onTouchEvent(motionEvent); } return false; } public void setEnableScrolling(boolean z) { this.e = z; } }