Skip to content

Commit 0cbaac5

Browse files
committed
Fix a camera issue when lassoing in non-panZoom mouse mode
1 parent 5354c34 commit 0cbaac5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Add two events: `init` and `destroy`
66
- Add `lassoLineWidth` to allow adjusting the lasso line width
77
- Fix an issue with normalizing RGBA values
8+
- Fix a camera issue when lassoing in non-`panZoom` mouse mode
89

910
## v0.18.1
1011

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ const createScatterplot = (initialProperties = {}) => {
684684
};
685685

686686
const lassoEnd = (lassoPoints, lassoPointsFlat, { merge = false } = {}) => {
687-
if (mouseMode === MOUSE_MODE_PANZOOM) camera.config({ isFixed: false });
687+
camera.config({ isFixed: false });
688688
lassoPointsCurr = [...lassoPoints];
689689
// const t0 = performance.now();
690690
const pointsInLasso = findPointsInLasso(lassoPointsFlat);

0 commit comments

Comments
 (0)