Skip to content

Commit

Permalink
increased sensitivity for connecting dots
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilce committed Mar 6, 2024
1 parent 7437580 commit b7ae298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"livePreview.defaultPreviewPath": "/MinDArT-1-Touchscape/index.html"
"livePreview.defaultPreviewPath": "/MinDArT-1-Touchscape/index.html",
"githubPullRequests.ignoredPullRequestBranches": [
"master"
]
}
6 changes: 3 additions & 3 deletions MinDArT-5-Dotscape/dotscape.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function touchdown() {
function touchstop(ev) {
console.log("touchstop : throughDotCount="+ throughDotCount);
isMousedown = 0;
throughDotCount = 1;
// throughDotCount = 1;
lineLayer.clear();
render();

Expand Down Expand Up @@ -282,10 +282,10 @@ class Dot {
}
}
clicked(x, y) {
let rMultiplier = 1;
let rMultiplier = 1.4;
let d = dist(x, y, this.x, this.y);
if (throughDotCount === 0) {
rMultiplier = 1.4; // increase radius for first grab {previously 1.2}
rMultiplier = 2; // increase radius for first grab {previously 1.2}
}
if (
d < this.r * 2.05 * rMultiplier &&
Expand Down

0 comments on commit b7ae298

Please sign in to comment.