Skip to content

Commit ba52500

Browse files
committed
Updated plugin to version 2.8
1 parent ee44ab8 commit ba52500

36 files changed

+656
-3918
lines changed

ajax_example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE HTML>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
@@ -86,7 +86,7 @@ <h1>Ajax demo</h1>
8686
$this.removeClass("loading");
8787
$("#content_1 .mCSB_container").append(data); //append new content inside .mCSB_container
8888
$("#content_1").mCustomScrollbar("update"); //update scrollbar according to newly appended content
89-
$("#content_1").mCustomScrollbar("scrollTo","h2:last",{scrollInertia:2500,scrollEasing:Power3.easeInOut}); //scroll to appended content
89+
$("#content_1").mCustomScrollbar("scrollTo","h2:last",{scrollInertia:2500,scrollEasing:"easeInOutQuad"}); //scroll to appended content
9090
});
9191
});
9292
});

auto_hide_scrollbar_demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE HTML>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">

auto_scrolling_example.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE HTML>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
@@ -83,7 +83,7 @@ <h1>Auto-scrolling example</h1>
8383
});
8484
function AutoScrollOn(to,timer){
8585
if(!timer){timer=autoScrollTimer;}
86-
content.addClass("auto-scrolling-on").mCustomScrollbar("scrollTo",to,{scrollInertia:timer,scrollEasing:Power1.easeInOut});
86+
content.addClass("auto-scrolling-on").mCustomScrollbar("scrollTo",to,{scrollInertia:timer,scrollEasing:"easeInOutQuad"});
8787
autoScroll=setTimeout(function(){
8888
if(content.hasClass("auto-scrolling-to-top")){
8989
AutoScrollOn("bottom",autoScrollTimer-autoScrollTimerAdjust);

callbacks_example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE HTML>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">

complete_examples.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE HTML>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
@@ -233,10 +233,10 @@ <h2>Simple callbacks demo</h2>
233233
}
234234
});
235235
$(".content_2").mCustomScrollbar({
236-
scrollInertia:0
236+
scrollInertia:150
237237
});
238238
$(".content_3").mCustomScrollbar({
239-
scrollInertia:500,
239+
scrollInertia:600,
240240
autoDraggerLength:false
241241
});
242242
$(".content_4").mCustomScrollbar({
@@ -247,7 +247,8 @@ <h2>Simple callbacks demo</h2>
247247
horizontalScroll:true,
248248
scrollButtons:{
249249
enable:true
250-
}
250+
},
251+
theme:"dark-thin"
251252
});
252253
$(".content_6").mCustomScrollbar({
253254
horizontalScroll:true,
@@ -259,7 +260,8 @@ <h2>Simple callbacks demo</h2>
259260
set_width:"95%",
260261
scrollButtons:{
261262
enable:true
262-
}
263+
},
264+
theme:"light-2"
263265
});
264266
$(".content_8").mCustomScrollbar({
265267
callbacks:{

0 commit comments

Comments
 (0)