代码之家  ›  专栏  ›  技术社区  ›  Romias

引导程序背景在步骤之间闪烁

  •  0
  • Romias  · 技术社区  · 7 年前

    在v0.12.0的引导程序中,当激活background时有一个恼人的效果。 但一旦你点击下一步, 背景消失了一会儿,又出现了 眨眼。

    这是最后一个版本。。。现在已经1岁了。

    1 回复  |  直到 7 年前
        1
  •  0
  •   Romias    7 年前

    我做了一些有用的事。

    if (step.backdrop) {
        next_step = (iNext != null) && _this.getStep(iNext);
    
        if (!next_step || !next_step.backdrop /*|| next_step.backdropElement !== step.backdropElement*/) {
                  _this._hideOverlayElement(step);
           }
     }
    

    所以它结束了:

    if (step.backdrop) {
            next_step = (iNext != null) && _this.getStep(iNext);
    
            if (!next_step || !next_step.backdrop ) {
                      _this._hideOverlayElement(step);
               }
         }
    
    推荐文章