From 68428ebad32242d840a49b2f950affb868a7f4e2 Mon Sep 17 00:00:00 2001 From: Filipp Riabchun Date: Fri, 8 Nov 2019 01:31:35 +0100 Subject: [PATCH] Fix horizontal handles positioning --- packages/victory-brush-container/src/brush-helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/victory-brush-container/src/brush-helpers.js b/packages/victory-brush-container/src/brush-helpers.js index 614b53d50..d9068836a 100644 --- a/packages/victory-brush-container/src/brush-helpers.js +++ b/packages/victory-brush-container/src/brush-helpers.js @@ -49,8 +49,8 @@ const Helpers = { return { left: brushDimension !== "y" && { x1: minX - handleWidth, x2: minX + handleWidth, y1, y2 }, right: brushDimension !== "y" && { x1: maxX - handleWidth, x2: maxX + handleWidth, y1, y2 }, - top: brushDimension !== "x" && { x1, x2, y1: minY + handleWidth, y2: minY - handleWidth }, - bottom: brushDimension !== "x" && { x1, x2, y1: maxY + handleWidth, y2: maxY - handleWidth } + top: brushDimension !== "x" && { x1, x2, y1: minY - handleWidth, y2: minY + handleWidth }, + bottom: brushDimension !== "x" && { x1, x2, y1: maxY - handleWidth, y2: maxY + handleWidth } }; },