Fixed flipeffect bug.
This commit is contained in:
Vendored
+5
@@ -5038,9 +5038,13 @@
|
||||
}
|
||||
|
||||
start({ targetCenter = null } = {}) {
|
||||
console.log('start');
|
||||
this.flippable.showFront();
|
||||
if (this.preloadBack) {
|
||||
console.log('preloadBack');
|
||||
this.flippable.start({ duration: this.flipDuration, targetCenter });
|
||||
} else {
|
||||
console.log('no back preload');
|
||||
let back = this.cardWrapper.querySelector('.back');
|
||||
let flippable = this.flippable;
|
||||
this.backLoader.load(back).then(loader => {
|
||||
@@ -5248,6 +5252,7 @@
|
||||
|
||||
start({ targetCenter = null } = {}) {
|
||||
this.bringToFront();
|
||||
console.log('flippable start', this.flipped);
|
||||
if (!this.flipped) {
|
||||
this.startX = this.element._gsTransform.x;
|
||||
this.startY = this.element._gsTransform.y;
|
||||
|
||||
Reference in New Issue
Block a user