From 5d50d5b772ea950d0bbc04fcbb37513cdf39095b Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko <2277098+anoshenko@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:11:51 +0300 Subject: [PATCH] Bug fining --- animationEvents.go | 2 +- transform.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/animationEvents.go b/animationEvents.go index 2fd7028..e785007 100644 --- a/animationEvents.go +++ b/animationEvents.go @@ -201,7 +201,7 @@ func (view *viewData) handleTransitionEvents(tag PropertyName, data DataObject) if tag == TransitionEndEvent || tag == TransitionCancelEvent { if animation, ok := view.singleTransition[property]; ok { delete(view.singleTransition, property) - setTransition(view, tag, animation) + setTransition(view, property, animation) session := view.session session.updateCSSProperty(view.htmlID(), "transition", transitionCSS(view, session)) } diff --git a/transform.go b/transform.go index 8b862fb..130520a 100644 --- a/transform.go +++ b/transform.go @@ -499,19 +499,19 @@ func (transform *transformPropertyData) transformCSS(session Session) string { if z.Type != Auto && z.Value != 0 { buffer.WriteString(`translate3d(`) - buffer.WriteString(x.cssString("0", session)) + buffer.WriteString(x.cssString("0px", session)) buffer.WriteRune(',') - buffer.WriteString(y.cssString("0", session)) + buffer.WriteString(y.cssString("0px", session)) buffer.WriteRune(',') - buffer.WriteString(z.cssString("0", session)) + buffer.WriteString(z.cssString("0px", session)) buffer.WriteString(") ") } else if (x.Type != Auto && x.Value != 0) || (y.Type != Auto && y.Value != 0) { buffer.WriteString(`translate(`) - buffer.WriteString(x.cssString("0", session)) + buffer.WriteString(x.cssString("0px", session)) buffer.WriteRune(',') - buffer.WriteString(y.cssString("0", session)) + buffer.WriteString(y.cssString("0px", session)) buffer.WriteString(") ") }