fix: use element window instead of global object

This commit is contained in:
Loïc Mangeonjean
2026-04-13 12:51:17 +02:00
parent 34e0179355
commit 69ee4ad23b
+1 -1
View File
@@ -18,7 +18,7 @@ export class MouseCoordsService implements IMouseCoordsService {
public getCoords(event: {clientX: number, clientY: number}, element: HTMLElement, colCount: number, rowCount: number, isSelection?: boolean): [number, number] | undefined {
return getCoords(
window,
getWindow(element),
event,
element,
colCount,