File tree 1 file changed +7
-7
lines changed
src/platforms/web/runtime/components
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,11 @@ export default {
94
94
}
95
95
96
96
children . forEach ( c => {
97
+ if ( c . elm . _moveCb ) {
98
+ c . elm . _moveCb ( )
99
+ }
97
100
const oldPos = c . data . pos
98
- const newPos = c . elm . getBoundingClientRect ( )
101
+ const newPos = c . data . pos = c . elm . getBoundingClientRect ( )
99
102
const dx = oldPos . left - newPos . left
100
103
const dy = oldPos . top - newPos . top
101
104
if ( dx || dy ) {
@@ -112,16 +115,13 @@ export default {
112
115
children . forEach ( c => {
113
116
if ( c . data . moved ) {
114
117
const el = c . elm
115
- /* istanbul ignore if */
116
- if ( el . _pendingMoveCb ) {
117
- el . _pendingMoveCb ( )
118
- }
119
118
const s = el . style
120
119
addTransitionClass ( el , moveClass )
121
120
s . transform = s . WebkitTransform = s . transitionDuration = ''
122
- el . addEventListener ( transitionEndEvent , el . _pendingMoveCb = function cb ( ) {
121
+ el . _moveDest = c . data . pos
122
+ el . addEventListener ( transitionEndEvent , el . _moveCb = function cb ( ) {
123
123
el . removeEventListener ( transitionEndEvent , cb )
124
- el . _pendingMoveCb = null
124
+ el . _moveCb = null
125
125
removeTransitionClass ( el , moveClass )
126
126
} )
127
127
}
You can’t perform that action at this time.
0 commit comments