add customscrollbar+scrollto+blob

This commit is contained in:
figureslibres
2018-09-23 21:07:04 +02:00
parent 542996f0bb
commit 99f9145abf
160 changed files with 1966 additions and 1680 deletions
+20
View File
@@ -317,8 +317,28 @@ function dragcanvas() {
});
}
function mCustomScrollbar() {
$('.blocs').mCustomScrollbar({
scrollInertia: 0
});
$('.blocs').mCustomScrollbar("update");
$(document).on("click","a[href^='#']",function(e){
var href=$(this).attr("href"),target=$(href).parents(".mCustomScrollbar");
if(target.length){
e.preventDefault();
target.mCustomScrollbar("scrollTo",href);
}
});
}
$(document).ready(function() {
// gestionarray();
mCustomScrollbar();
clickhand();
drag();
dragcanvas();