mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-10 19:57:13 +03:00
release 4.3.0
This commit is contained in:
parent
96ad6f93ed
commit
08d8add438
|
@ -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
2
css/mdb.min.css
vendored
|
@ -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
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
|
@ -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",
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user