release 4.3.0

This commit is contained in:
Grzegorz Bujański 2022-07-11 11:36:35 +02:00
parent 96ad6f93ed
commit 08d8add438
7 changed files with 14 additions and 8 deletions

View File

@ -1,5 +1,5 @@
MDB5 MDB5
Version: FREE 4.2.0 Version: FREE 4.3.0
Documentation: Documentation:
https://mdbootstrap.com/docs/standard/ https://mdbootstrap.com/docs/standard/

2
css/mdb.min.css vendored
View File

@ -1,6 +1,6 @@
/*! /*!
* MDB5 * MDB5
* Version: FREE 4.2.0 * Version: FREE 4.3.0
* *
* *
* Copyright: Material Design for Bootstrap * Copyright: Material Design for Bootstrap

File diff suppressed because one or more lines are too long

4
js/mdb.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "mdb-ui-kit", "name": "mdb-ui-kit",
"version": "4.2.0", "version": "4.3.0",
"main": "js/mdb.min.js", "main": "js/mdb.min.js",
"homepage": "https://mdbootstrap.com/docs/standard/", "homepage": "https://mdbootstrap.com/docs/standard/",
"repository": "https://github.com/mdbootstrap/mdb-ui-kit.git", "repository": "https://github.com/mdbootstrap/mdb-ui-kit.git",

View File

@ -117,12 +117,18 @@ class Ripple {
EventHandler.on(target, 'mousedown', this._clickHandler); EventHandler.on(target, 'mousedown', this._clickHandler);
} }
_getEventLayer(event) {
const x = Math.round(event.clientX - event.target.getBoundingClientRect().x);
const y = Math.round(event.clientY - event.target.getBoundingClientRect().y);
return { layerX: x, layerY: y };
}
_createRipple(event) { _createRipple(event) {
if (!Manipulator.hasClass(this._element, CLASSNAME_RIPPLE)) { if (!Manipulator.hasClass(this._element, CLASSNAME_RIPPLE)) {
Manipulator.addClass(this._element, CLASSNAME_RIPPLE); Manipulator.addClass(this._element, CLASSNAME_RIPPLE);
} }
const { layerX, layerY } = event; const { layerX, layerY } = this._getEventLayer(event);
const offsetX = layerX; const offsetX = layerX;
const offsetY = layerY; const offsetY = layerY;
const height = this._element.offsetHeight; const height = this._element.offsetHeight;