From aab9280e8cbddb4cf8a3ed554ab183b720a5c118 Mon Sep 17 00:00:00 2001 From: Joseph Ivie Date: Fri, 12 Jul 2024 14:00:25 -0600 Subject: [PATCH] JS animation fix --- .../com/lightningkite/kiteui/views/direct/ImageView.js.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/src/jsMain/kotlin/com/lightningkite/kiteui/views/direct/ImageView.js.kt b/library/src/jsMain/kotlin/com/lightningkite/kiteui/views/direct/ImageView.js.kt index 3580163c..4c68075c 100644 --- a/library/src/jsMain/kotlin/com/lightningkite/kiteui/views/direct/ImageView.js.kt +++ b/library/src/jsMain/kotlin/com/lightningkite/kiteui/views/direct/ImageView.js.kt @@ -61,6 +61,7 @@ actual inline var ImageView.source: ImageSource? } } fun ImageView.setSrc(url: String) { + val animating = animationsEnabled if(!animationsEnabled) { native.innerHTML = "" } @@ -100,13 +101,13 @@ fun ImageView.setSrc(url: String) { val children = (0..