mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-04-19 21:31:24 +00:00
Skipping interception of some gestures
This commit is contained in:
@@ -68,6 +68,14 @@ public final class FlingBehavior extends AppBarLayout.Behavior {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
final View seekBar = child.findViewById(R.id.playbackSeekBar);
|
||||
if (seekBar != null) {
|
||||
final boolean visible = seekBar.getGlobalVisibleRect(globalRect);
|
||||
if (visible && globalRect.contains((int) ev.getRawX(), (int) ev.getRawY())) {
|
||||
allowScroll = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
allowScroll = true;
|
||||
switch (ev.getActionMasked()) {
|
||||
case MotionEvent.ACTION_DOWN:
|
||||
|
||||
Reference in New Issue
Block a user