mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-03-13 22:50:01 -04:00
The radius of the circle is now divided by paper.view.zoom, and the strokeWidth also. (Fixes #179)
This commit is contained in:
parent
724fe85645
commit
0198265fb8
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ const removeHitPoint = function () {
|
|||
const drawHitPoint = function (point) {
|
||||
removeHitPoint();
|
||||
if (point) {
|
||||
const hitPoint = paper.Path.Circle(point, 4 /* radius */);
|
||||
const hitPoint = paper.Path.Circle(point, 4 / paper.view.zoom /* radius */);
|
||||
hitPoint.strokeWidth = 1 / paper.view.zoom;
|
||||
hitPoint.strokeColor = GUIDE_BLUE;
|
||||
hitPoint.fillColor = new paper.Color(1, 1, 1, 0.5);
|
||||
hitPoint.parent = getGuideLayer();
|
||||
|
|
Loading…
Reference in a new issue