File tree Expand file tree Collapse file tree
app/src/main/java/com/lagradost/cloudstream3/ui/player Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1660,7 +1660,7 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
16601660 playerBinding?.playerIntroPlay?.isGone = true
16611661
16621662 // Handle pan with two fingers
1663- if (event.pointerCount == 2 && ! isLocked && isFullScreenPlayer && ! hasTriggeredSpeedUp && currentTouchAction == null ) {
1663+ if (( event.pointerCount == 2 || lastPan != null ) && ! isLocked && isFullScreenPlayer && ! hasTriggeredSpeedUp && currentTouchAction == null ) {
16641664 holdhandler.removeCallbacks(holdRunnable) // remove 2x speed
16651665
16661666 // Gesture detectors for zoom & pan
@@ -1695,7 +1695,7 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
16951695 lastPan = newPan
16961696 }
16971697
1698- MotionEvent .ACTION_POINTER_UP , MotionEvent .ACTION_UP -> {
1698+ MotionEvent .ACTION_CANCEL , MotionEvent . ACTION_POINTER_UP , MotionEvent .ACTION_UP -> {
16991699 // Reset touch
17001700 lastPan = null
17011701 currentTouchStart = null
@@ -1777,7 +1777,7 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
17771777 }
17781778 }
17791779
1780- MotionEvent .ACTION_UP -> {
1780+ MotionEvent .ACTION_CANCEL , MotionEvent . ACTION_UP -> {
17811781 holdhandler.removeCallbacks(holdRunnable)
17821782 if (hasTriggeredSpeedUp) {
17831783 player.setPlaybackSpeed(DataStoreHelper .playBackSpeed)
You can’t perform that action at this time.
0 commit comments