Bug fining

This commit is contained in:
Alexei Anoshenko 2024-12-18 19:11:51 +03:00
parent 6c0980c46e
commit 5d50d5b772
2 changed files with 6 additions and 6 deletions

View File

@ -201,7 +201,7 @@ func (view *viewData) handleTransitionEvents(tag PropertyName, data DataObject)
if tag == TransitionEndEvent || tag == TransitionCancelEvent { if tag == TransitionEndEvent || tag == TransitionCancelEvent {
if animation, ok := view.singleTransition[property]; ok { if animation, ok := view.singleTransition[property]; ok {
delete(view.singleTransition, property) delete(view.singleTransition, property)
setTransition(view, tag, animation) setTransition(view, property, animation)
session := view.session session := view.session
session.updateCSSProperty(view.htmlID(), "transition", transitionCSS(view, session)) session.updateCSSProperty(view.htmlID(), "transition", transitionCSS(view, session))
} }

View File

@ -499,19 +499,19 @@ func (transform *transformPropertyData) transformCSS(session Session) string {
if z.Type != Auto && z.Value != 0 { if z.Type != Auto && z.Value != 0 {
buffer.WriteString(`translate3d(`) buffer.WriteString(`translate3d(`)
buffer.WriteString(x.cssString("0", session)) buffer.WriteString(x.cssString("0px", session))
buffer.WriteRune(',') buffer.WriteRune(',')
buffer.WriteString(y.cssString("0", session)) buffer.WriteString(y.cssString("0px", session))
buffer.WriteRune(',') buffer.WriteRune(',')
buffer.WriteString(z.cssString("0", session)) buffer.WriteString(z.cssString("0px", session))
buffer.WriteString(") ") buffer.WriteString(") ")
} else if (x.Type != Auto && x.Value != 0) || (y.Type != Auto && y.Value != 0) { } else if (x.Type != Auto && x.Value != 0) || (y.Type != Auto && y.Value != 0) {
buffer.WriteString(`translate(`) buffer.WriteString(`translate(`)
buffer.WriteString(x.cssString("0", session)) buffer.WriteString(x.cssString("0px", session))
buffer.WriteRune(',') buffer.WriteRune(',')
buffer.WriteString(y.cssString("0", session)) buffer.WriteString(y.cssString("0px", session))
buffer.WriteString(") ") buffer.WriteString(") ")
} }