mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-25 01:20:34 +00:00
Merge pull request #2772 from mitosagi/popup-player-gestures
Fix popup player gestures
This commit is contained in:
commit
2b2de8811e
@ -1036,7 +1036,7 @@ public final class PopupVideoPlayer extends Service {
|
|||||||
public boolean onTouch(View v, MotionEvent event) {
|
public boolean onTouch(View v, MotionEvent event) {
|
||||||
popupGestureDetector.onTouchEvent(event);
|
popupGestureDetector.onTouchEvent(event);
|
||||||
if (playerImpl == null) return false;
|
if (playerImpl == null) return false;
|
||||||
if (event.getPointerCount() == 2 && !isResizing) {
|
if (event.getPointerCount() == 2 && !isMoving && !isResizing) {
|
||||||
if (DEBUG) Log.d(TAG, "onTouch() 2 finger pointer detected, enabling resizing.");
|
if (DEBUG) Log.d(TAG, "onTouch() 2 finger pointer detected, enabling resizing.");
|
||||||
playerImpl.showAndAnimateControl(-1, true);
|
playerImpl.showAndAnimateControl(-1, true);
|
||||||
playerImpl.getLoadingPanel().setVisibility(View.GONE);
|
playerImpl.getLoadingPanel().setVisibility(View.GONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user