Skip to content

Commit 08d8add

Browse files
author
Grzegorz Bujański
committed
release 4.3.0
1 parent 96ad6f9 commit 08d8add

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MDB5
2-
Version: FREE 4.2.0
2+
Version: FREE 4.3.0
33

44
Documentation:
55
https://mdbootstrap.com/docs/standard/

css/mdb.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/mdb.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/mdb.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/mdb.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdb-ui-kit",
3-
"version": "4.2.0",
3+
"version": "4.3.0",
44
"main": "js/mdb.min.js",
55
"homepage": "https://mdbootstrap.com/docs/standard/",
66
"repository": "https://github.com/mdbootstrap/mdb-ui-kit.git",

src/js/free/ripple.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,18 @@ class Ripple {
117117
EventHandler.on(target, 'mousedown', this._clickHandler);
118118
}
119119

120+
_getEventLayer(event) {
121+
const x = Math.round(event.clientX - event.target.getBoundingClientRect().x);
122+
const y = Math.round(event.clientY - event.target.getBoundingClientRect().y);
123+
return { layerX: x, layerY: y };
124+
}
125+
120126
_createRipple(event) {
121127
if (!Manipulator.hasClass(this._element, CLASSNAME_RIPPLE)) {
122128
Manipulator.addClass(this._element, CLASSNAME_RIPPLE);
123129
}
124130

125-
const { layerX, layerY } = event;
131+
const { layerX, layerY } = this._getEventLayer(event);
126132
const offsetX = layerX;
127133
const offsetY = layerY;
128134
const height = this._element.offsetHeight;

0 commit comments

Comments
 (0)