diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index 4640ff2..ac5399d 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -865,6 +865,19 @@ { if (data.shape.contains(tempPoint.x, tempPoint.y)) { + if (data.holes) + { + for (let i = 0; i < data.holes.length; i++) + { + const hole = data.holes[i]; + + if (hole.contains(tempPoint.x, tempPoint.y)) + { + return false; + } + } + } + return true; } }