@@ -30,7 +30,6 @@ object Zoom : Module(
3030 description = " Zooms the current view" ,
3131 tag = ModuleTag .RENDER ,
3232) {
33- override val disableOnRelease by setting(" Disable On Release" , true )
3433 private var zoom by setting(" Zoom" , 2f , 1f .. 10f , 0.1f )
3534 private val style by setting(" Style" , ZoomStyle .EaseOut )
3635 private val animationDuration by setting(" Animation Duration" , 1f , 0.1f .. 10f , 0.1f ) { style != ZoomStyle .Instant }
@@ -90,7 +89,7 @@ object Zoom : Module(
9089 val apply : (Float , Float , Float ) -> Float ,
9190 ) : NamedEnum {
9291 Instant (" Instant" , { _, v, _ -> v }),
93- EaseOut (" Ease Out" , { start, end, progress -> start + ((end - start) * 1f - (1f - progress) * (1f - progress)) }),
94- EaseIn (" Ease In" , { start, end, progress -> start + ((end - start) * progress * progress) })
92+ EaseOut (" Ease Out" , { start, end, progress -> start + ((end - start) * ( 1f - (( 1f - progress) * (1f - progress)) )) }),
93+ EaseIn (" Ease In" , { start, end, progress -> start + ((end - start) * ( progress * progress) ) })
9594 }
9695}
0 commit comments