Skip to content

Commit

Permalink
Fixes small UIButton clicking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Oct 11, 2023
1 parent 058418b commit 2a7d980
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions korge/src/common/korlibs/korge/ui/UIMaterialLayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ class UIMaterialLayer(
fun removeHighlight(highlight: Highlight) {
view.simpleAnimator.sequence {
tween(
highlight::alpha[0.0],
highlight::radiusRatio[0.0],
if (highlight.below) highlight::radiusRatio[0.0] else highlight::alpha[0.0],
V2Callback { view.invalidateRender() }, time = 0.3.seconds, easing = Easing.EASE_IN)
block { highlights.remove(highlight) }
}
Expand Down

0 comments on commit 2a7d980

Please sign in to comment.