Skip to content

Commit 0d5ad50

Browse files
committed
Fix reticle glitches by updating regl-line
Fix #46
1 parent f4aa985 commit 0d5ad50

4 files changed

Lines changed: 42 additions & 42 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## v0.18.1
44

55
- Rename `showRecticle` to `showReticle` and `recticleColor` to `reticleColor` (#47)
6+
- Fix reticle glitches by updating `regl-line` (#46)
67

78
## v0.18.0
89

package-lock.json

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"lodash-es": "~4.17.21",
4040
"pub-sub-es": "~2.0.1",
4141
"regl": "~1.3.13",
42-
"regl-line": "~0.4.3",
42+
"regl-line": "~0.4.4",
4343
"with-raf": "~1.1.1"
4444
},
4545
"peerDependencies": {

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,7 @@ const createScatterplot = (initialProperties = {}) => {
802802

803803
// Only ray cast if the mouse cursor is inside
804804
if (isMouseInCanvas && !lassoActive) {
805-
const clostestPoint = raycast();
806-
hover(clostestPoint); // eslint-disable-line no-use-before-define
805+
hover(raycast()); // eslint-disable-line no-use-before-define
807806
}
808807

809808
if (lassoActive) lassoManager.extend(event, true);

0 commit comments

Comments
 (0)