Open litetex opened 2 years ago
I think I have a decent explanation for what item 2 is/does:
velocityX
and velocityY
of a popup:TOSS_FLING_VELOCITY
:playerUi.popupLayoutParams.*
) to the rounded Value of its co-axial velocity (velocity*
)popupLayoutParams
width/heightWhat this does, for a well chosen TOSS_FLING_VELOCITY
that:
popupLayoutParams
width/height when either negative or positiveis to snap a flung popup to the edge of what popupLayoutParams
says is the available space in the (approximate) direction it was sent.
I and Stypox noticed some strange things while reviewing/refactoring the player https://github.com/TeamNewPipe/NewPipe/pull/8170 (which were also there before the refactoring):
Runtime.getRuntime().halt(0)
: https://github.com/TeamNewPipe/NewPipe/pull/8170#discussion_r865168043Other things to do: