Browse Source

7694随页面滚动

zhouna 4 years atrás
parent
commit
1950d487ea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/js/cdssHorizontal.js

+ 2 - 2
src/js/cdssHorizontal.js

@@ -677,8 +677,8 @@ function addScrollEvent(){
     }
   }, 100));
   $(`.rightWrapper`).off("scroll").scroll(throttle(function(){
-    if($(".rightWrapper .longStrBox").css("display") === "block"){
-      $(".rightWrapper .longStrBox").css("top",Number(getLongTop("right"))+5+"px")
+      if ($(".rightWrapper .longStrBox:visible").css("display") === "block") {
+          $(".rightWrapper .longStrBox:visible").css("top", Number(getLongTop("right")) + 5 + "px")
     }
   }, 100));
 }