File tree Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
- The MIT License (MIT) Copyright (c) 2012-2019 Hyunje Jun, MDBootstrap.com and other contributors
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2012-2019 Hyunje Jun, MDBootstrap.com and other contributors
2
4
3
5
Permission is hereby granted, free of charge, to any person obtaining a copy of
4
6
this software and associated documentation files (the "Software"), to deal in
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ The scroll speed applied to mousewheel event.
210
210
If this option is true, when the scroll reaches the end of the side, mousewheel
211
211
event will be propagated to parent element.
212
212
213
- ** Default** : ` false `
213
+ ** Default** : ` true `
214
214
215
215
### ` swipeEasing {Boolean} `
216
216
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " perfect-scrollbar" ,
3
- "version" : " 1.5.0 " ,
3
+ "version" : " 1.5.1 " ,
4
4
"description" : " Minimalistic but perfect custom scrollbar plugin" ,
5
5
"author" : " Hyunje Jun <me@noraesae.net>" ,
6
6
"keywords" : [
Original file line number Diff line number Diff line change @@ -189,6 +189,11 @@ export default function(i) {
189
189
return ;
190
190
}
191
191
192
+ if ( ! i . element ) {
193
+ clearInterval ( easingLoop ) ;
194
+ return ;
195
+ }
196
+
192
197
applyTouchMove ( speed . x * 30 , speed . y * 30 ) ;
193
198
194
199
speed . x *= 0.8 ;
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ export default function(i) {
8
8
const roundedScrollTop = Math . floor ( element . scrollTop ) ;
9
9
const rect = element . getBoundingClientRect ( ) ;
10
10
11
- i . containerWidth = Math . ceil ( rect . width ) ;
12
- i . containerHeight = Math . ceil ( rect . height ) ;
11
+ i . containerWidth = Math . round ( rect . width ) ;
12
+ i . containerHeight = Math . round ( rect . height ) ;
13
+
13
14
i . contentWidth = element . scrollWidth ;
14
15
i . contentHeight = element . scrollHeight ;
15
16
You can’t perform that action at this time.
0 commit comments