* Override the toplevel stop to actually stop the CSS.
()
| 76 | * Override the toplevel stop to actually stop the CSS. |
| 77 | */ |
| 78 | public stop():void{ |
| 79 | super.stop(); |
| 80 | this.dom.style.transition = ''; |
| 81 | // This clears translation (sets translate to 0px) |
| 82 | this.x = this._x; |
| 83 | // Set to null to force writing an absolute x position |
| 84 | this._x = null; |
| 85 | // Write down the current expected x as absolute |
| 86 | this.x = this.x; |
| 87 | // Make the CSS dirty so that next update will start the movement |
| 88 | this._dirtyCSS = true; |
| 89 | } |
| 90 | } |