2013-05-13 65 views
0

我在Mac上使用Safari 6.0.2。Scrolltop safari bug

這是website:

我,只有在野生動物園與scrolltop發生的問題。

如果我點擊一個項目,然後點擊圖片顯示下一個,視窗在chrome和firefox上保持不變,但在safari上,頁面跳轉到頂部。

嘗試點擊項目上的safari FusteriaOllé,然後在它的圖像上,你會看到問題。

這是我的代碼:

function project_display(that){ 
     $('.info_content').hide(); 
     var $submenu = $(that).next('.project'), 
     viz = $submenu.is(":visible"); 
     if (!viz) { 
      $(that).addClass('active'); 
      $(that).next().find('.slider').show(); 
      $(that).next('.project').slideDown(function(){ 
       $('html, body').animate({ 
        scrollTop: $(this).offset().top -50 
       }, 300); 
      }); 
     } 
    }; 

任何想法是錯誤的Safari瀏覽器?

Safari瀏覽器: enter image description here

的Chrome/Firefox中: enter image description here

回答

0

有一個bug前一陣子,這已經是固定的。 Chrome更經常更新他的瀏覽器,所以它已經在那裏消失了。

另請參閱http://trac.webkit.org/changeset/139669的錯誤修正。

是的,它已經在四個月前被修復了,但是當Apple沒有真正的安全問題時,Safari通常會更新Safari。您可能想要使用實際的夜間Webkit進行測試:http://nightly.webkit.org/