From 332f3bbc652250cb92fa211e7b6aa16a633924fb Mon Sep 17 00:00:00 2001 From: bordun Date: Sun, 22 Nov 2020 17:43:25 +0100 Subject: [PATCH] misc: fix error in not-used code, just in case --- src/client/events/transform-coords.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/events/transform-coords.js b/src/client/events/transform-coords.js index 5425ac7d..4e3b5c96 100644 --- a/src/client/events/transform-coords.js +++ b/src/client/events/transform-coords.js @@ -45,8 +45,8 @@ function getTransformationMatrix(w) { } -module.export = function cssTransformCoords(node, x, y) { +module.exports = function cssTransformCoords(node, x, y) { - return new Point(pageX, pageY, 0).transformBy(getTransformationMatrix(element).inverse()) + return new Point(x, y, 0).transformBy(getTransformationMatrix(node).inverse()) }