tests / bugfix: Timeslider Chrome 55 Further scroll fix (#4186)
parent
3d89eed31a
commit
1e5680a870
|
@ -596,12 +596,11 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
|
||||||
var line = $('#innerdocbody').find("div:nth-child("+(lineNumber+1)+")");
|
var line = $('#innerdocbody').find("div:nth-child("+(lineNumber+1)+")");
|
||||||
var newY = $(line)[0].offsetTop;
|
var newY = $(line)[0].offsetTop;
|
||||||
var ecb = document.getElementById('editorcontainerbox');
|
var ecb = document.getElementById('editorcontainerbox');
|
||||||
// Cjrome 55 - 59 bugfix
|
// Chrome 55 - 59 bugfix
|
||||||
if(ecb.scrollTo){
|
if(ecb.scrollTo){
|
||||||
ecb.scrollTo({top: newY, behavior: 'smooth'});
|
ecb.scrollTo({top: newY, behavior: 'smooth'});
|
||||||
}else{
|
}else{
|
||||||
// note the p..
|
$('#editorcontainerbox').scrollTop(newY);
|
||||||
ecb.scrollTop(newY);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue