slightly optimize onZoom

This commit is contained in:
Azgaar 2022-05-12 23:54:19 +03:00
parent decfbc1337
commit aab27ca673
4 changed files with 25 additions and 12 deletions

View file

@ -65,8 +65,8 @@ function showElementLockTip(event) {
}
}
const moved = debounce(mouseMove, 100);
function mouseMove() {
const onMouseMove = debounce(handleMouseMove, 100);
function handleMouseMove() {
const point = d3.mouse(this);
const i = findCell(point[0], point[1]); // pack cell id
if (i === undefined) return;