This commit is contained in:
rulingcom 2022-11-01 13:24:03 +08:00
parent 0b5ccce1ff
commit f6a39c6c50
1 changed files with 1 additions and 1 deletions

View File

@ -753,7 +753,7 @@ function transdate(){
var _this = $(document.activeElement);//$(this);
if($('body').css('position') != 'fixed' && !_this.hasClass('close-screen-btn') && !_this.hasClass('navbar-toggle')){
var ele_offset = _this[0].getBoundingClientRect().top;
if(ele_offset.parents('.kenjohn.navFixed').length == 0)
if(_this.parents('.kenjohn.navFixed').length == 0)
ele_offset -= window.top_barrier_height;
if(ele_offset < 0){
window.scroll(window.temp_scrollX, window.temp_scrollY + ele_offset);