From e110a04093aacfb878b08efd5af6bc6579fc7386 Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Sat, 11 Apr 2020 10:56:45 -0400 Subject: [PATCH] Set reshape handle size to match hit tolerance --- src/helper/selection-tools/reshape-tool.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helper/selection-tools/reshape-tool.js b/src/helper/selection-tools/reshape-tool.js index 003e3393..6f19a66d 100644 --- a/src/helper/selection-tools/reshape-tool.js +++ b/src/helper/selection-tools/reshape-tool.js @@ -74,7 +74,9 @@ class ReshapeTool extends paper.Tool { this.onKeyUp = this.handleKeyUp; this.onKeyDown = this.handleKeyDown; - paper.settings.handleSize = 8; + // A handle's size is given in diameter, and each handle has a 2.5-pixel stroke that isn't part of its size. + // Size the handles such that clicking on either the stroke or the handle itself will be registered as a drag + paper.settings.handleSize = (ReshapeTool.TOLERANCE * 2) - 2.5; } /** * Returns the hit options for segments to use when conducting hit tests. Segments are only visible