add customscrollbar+scrollto+blob
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user