Skip to content

Commit

Permalink
Renamed comments from Russian to English (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: MrRuslanYT <pandacorpglobal@gmail.com>
  • Loading branch information
KitsuneFolk and KitsuneFolk authored Jun 12, 2023
1 parent 02a41a7 commit 305ad5b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class SwipeTransformer(

override fun transformPage(page: View, position: Float) {
when {
// Все фрагменты справа от текущего
// All fragments to the right of the current one
position <= -1 -> {
page.visibility = View.INVISIBLE
page.alpha = 1.0f
}
// Экран, который появляется справа от текущего при открытии нового фрагмента
// The screen that appears to the right of the current one when opening a new fragment
position > 0 && position < 1 -> {
when (swipeDirection) {
SwipeDirection.LEFT_TO_RIGHT,
Expand All @@ -49,7 +49,7 @@ class SwipeTransformer(
page.visibility = View.VISIBLE
page.alpha = 1.0f
}
// Анимация ухода текущего фрагмента при открытии нового
// Animation for the current fragment exiting when opening a new one
position > -1 && position <= 0 -> {
when (swipeDirection) {
SwipeDirection.LEFT_TO_RIGHT -> {
Expand All @@ -68,7 +68,7 @@ class SwipeTransformer(
page.visibility = View.VISIBLE
page.alpha = 1.0f - abs(position * alphaFactor)
}
// Все фрагменты слева от текущего
// All fragments to the left of the current one
else -> {
page.visibility = View.INVISIBLE
page.alpha = 1.0f
Expand Down

0 comments on commit 305ad5b

Please sign in to comment.