Skip to content

Commit 76fdc89

Browse files
fix: correctly assign both x and y axes in 2D
1 parent 62d07e5 commit 76fdc89

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/component/2d/zones/SignalsGuideLines.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function IndicationLine(props: IndicationLineProps) {
206206
}
207207

208208
function mouseEnterHandler() {
209-
assignmentContext.highlight('x');
209+
assignmentContext.highlight(axis);
210210
highlightContext.show();
211211
}
212212

@@ -217,7 +217,7 @@ function IndicationLine(props: IndicationLineProps) {
217217

218218
function assignHandler() {
219219
isAssignBtnTrigged.current = true;
220-
assignmentContext.activate('x');
220+
assignmentContext.activate(axis);
221221
}
222222

223223
function unAssignHandler() {

src/component/panels/MoleculesPanel/useAtomAssignment.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ export default function useAtomAssignment() {
185185
if (!id || !axis) {
186186
return;
187187
}
188-
189188
const atomInformation = extractFromAtom(diaIDAndInfo, nucleus, axis);
190189

191190
if (atomInformation.nbAtoms === 0) {

0 commit comments

Comments
 (0)