[Web] Reponsive: Scroll faster
parent
dfc8c95a54
commit
bdafb7ab2f
|
@ -260,14 +260,12 @@ $(document).ready(function() {
|
|||
});
|
||||
$(document).on("shown.bs.collapse shown.bs.tab", function (e) {
|
||||
var target = $(e.target);
|
||||
|
||||
if($(window).width() <= 767) {
|
||||
var offset = target.offset().top - 112;
|
||||
$("html, body").stop().animate({
|
||||
scrollTop: offset
|
||||
}, 300);
|
||||
}, 100);
|
||||
}
|
||||
|
||||
if(target.hasClass('panel-collapse')){
|
||||
var id = e.target.id.replace(/-collapse$/g, '');
|
||||
if(id){
|
||||
|
|
Loading…
Reference in New Issue