From b7ae298ddb0d86f3975c76b1c74f83f2c141e6fe Mon Sep 17 00:00:00 2001 From: jameswilce Date: Wed, 6 Mar 2024 22:09:12 +1300 Subject: [PATCH] increased sensitivity for connecting dots --- .vscode/settings.json | 5 ++++- MinDArT-5-Dotscape/dotscape.js | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index c2374d23..5935931e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,6 @@ { - "livePreview.defaultPreviewPath": "/MinDArT-1-Touchscape/index.html" + "livePreview.defaultPreviewPath": "/MinDArT-1-Touchscape/index.html", + "githubPullRequests.ignoredPullRequestBranches": [ + "master" + ] } \ No newline at end of file diff --git a/MinDArT-5-Dotscape/dotscape.js b/MinDArT-5-Dotscape/dotscape.js index 109ca274..fc9da787 100644 --- a/MinDArT-5-Dotscape/dotscape.js +++ b/MinDArT-5-Dotscape/dotscape.js @@ -155,7 +155,7 @@ function touchdown() { function touchstop(ev) { console.log("touchstop : throughDotCount="+ throughDotCount); isMousedown = 0; - throughDotCount = 1; + // throughDotCount = 1; lineLayer.clear(); render(); @@ -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 &&