mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Set reshape handle size to match hit tolerance
This commit is contained in:
parent
87e01639c0
commit
e110a04093
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue