mirror of https://github.com/anoshenko/rui.git
Bug fining
This commit is contained in:
parent
6c0980c46e
commit
5d50d5b772
|
@ -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))
|
||||
}
|
||||
|
|
10
transform.go
10
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(") ")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue