Skip to content

Commit

Permalink
1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Mar 24, 2022
1 parent d12c99f commit 8de6b0a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
The MIT License (MIT) Copyright (c) 2012-2019 Hyunje Jun, MDBootstrap.com and other contributors
The MIT License (MIT)

Copyright (c) 2012-2019 Hyunje Jun, MDBootstrap.com and other contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ The scroll speed applied to mousewheel event.
If this option is true, when the scroll reaches the end of the side, mousewheel
event will be propagated to parent element.

**Default**: `false`
**Default**: `true`

### `swipeEasing {Boolean}`

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "perfect-scrollbar",
"version": "1.5.0",
"version": "1.5.1",
"description": "Minimalistic but perfect custom scrollbar plugin",
"author": "Hyunje Jun <[email protected]>",
"keywords": [
Expand Down
5 changes: 5 additions & 0 deletions src/handlers/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ export default function(i) {
return;
}

if (!i.element) {
clearInterval(easingLoop);
return;
}

applyTouchMove(speed.x * 30, speed.y * 30);

speed.x *= 0.8;
Expand Down
5 changes: 3 additions & 2 deletions src/update-geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export default function(i) {
const roundedScrollTop = Math.floor(element.scrollTop);
const rect = element.getBoundingClientRect();

i.containerWidth = Math.ceil(rect.width);
i.containerHeight = Math.ceil(rect.height);
i.containerWidth = Math.round(rect.width);
i.containerHeight = Math.round(rect.height);

i.contentWidth = element.scrollWidth;
i.contentHeight = element.scrollHeight;

Expand Down

0 comments on commit 8de6b0a

Please sign in to comment.