jquery を使用してslideDown()
おり、スクロール バーの高さが を超える場合にslideUp()
固定リンクを表示します。gototop
200px
問題:
リンク スライド アクションが混同されていfast mouse wheel up and down
ます。0.4 sec
スライド機能の実行時間のため。混合を防ぐためにavisible flag
とを定義しようとしました。complete functions
しかし、成功していません。
下にスクロールしresult block
てリンクを表示し、高速ホイールを上下に動かしてみてください。画面上で結果ブロックの高さが大きい場合は、高さを下げてアクションを確認してください。
impress: function () {
if ($(window).scrollTop() > this.MIN_SCROLL_HEIGHT
&& !this.buttonVisibleFlag)
{
this.button.slideDown(400, function() {
Blue.buttonVisibleFlag = true;
});
}
else if ($(window).scrollTop() <= this.MIN_SCROLL_HEIGHT
&& this.buttonVisibleFlag)
{
this.button.slideUp(400, function() {
Blue.buttonVisibleFlag = false;
});
}
}
どんなアイデアや助けも大歓迎です。