Answer the question
In order to leave comments, you need to log in
Why does ie11 complain about these two features?
$(document).on('mousemove', '.transfusionButton', function (event) {
const buttonProportions = $(this)[0].getBoundingClientRect();
const {
clientX
} = event;
const {
left
} = buttonProportions;
const x = clientX - left;
const {
width
} = buttonProportions;
$html.attr('style', `--transfusionPercent:${x - width / 2}px;`);
});
function getCellsBy(cellIndex) {
return $(`[data-cell-index=${cellIndex}]`);
}
const {
clientX
} = event;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question