We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b02a08c commit 144097eCopy full SHA for 144097e
2 files changed
CHANGELOG.md
@@ -1,3 +1,7 @@
1
+## v1.6.3
2
+
3
+- Fix an issue with repeated zooming to points
4
5
## v1.6.2
6
7
- Fix a build regression from updating to Rollup v3
src/index.js
@@ -2358,7 +2358,9 @@ const createScatterplot = (
2358
const target = [rect.x + rect.width / 2, rect.y + rect.height / 2];
2359
2360
// Vertical field of view
2361
- const vFOV = 2 * Math.atan(1 / camera.view[5]);
+ // The Arc Tangent is based on the original camera position. Otherwise
2362
+ // we would have to do `Math.atan(1 / camera.view[5])`
2363
+ const vFOV = 2 * Math.atan(1);
2364
2365
const distance =
2366
rect.height * viewAspectRatio > rect.width
0 commit comments