mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Fix size 0 handle rendering
This commit is contained in:
parent
85633deb64
commit
bf2a405ede
1 changed files with 3 additions and 0 deletions
|
@ -2136,6 +2136,9 @@ new function() { // Scope for drawing
|
||||||
// performance.
|
// performance.
|
||||||
|
|
||||||
function drawHandles(ctx, segments, matrix, size, isFullySelected) {
|
function drawHandles(ctx, segments, matrix, size, isFullySelected) {
|
||||||
|
if (size === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var half = size / 2,
|
var half = size / 2,
|
||||||
coords = new Array(6),
|
coords = new Array(6),
|
||||||
pX, pY;
|
pX, pY;
|
||||||
|
|
Loading…
Reference in a new issue