@progress/kendo-vue-data-tools
Version:
24 lines (23 loc) • 789 B
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { canUseDOM as l } from "@progress/kendo-vue-common";
function c(n, r) {
if (!r || !n || !n.originalEvent || !l)
return -1;
let e = document.elementFromPoint(n.clientX, n.originalEvent.clientY);
for (; e && e.parentElement !== r; )
e = e.parentElement;
const i = r.children;
for (let t = 0; t < i.length; t++)
if (i[t] === e)
return t;
return -1;
}
export {
c as getIndex
};