mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix mistake in HitResult test.
This commit is contained in:
parent
cb80b828a5
commit
db620e62be
1 changed files with 1 additions and 2 deletions
|
@ -143,8 +143,7 @@ test('hitting the center of a path', function() {
|
|||
test('hitting the center of a path with tolerance', function() {
|
||||
var path = new Path([0, 0], [100, 100], [200, 0]);
|
||||
path.closed = true;
|
||||
|
||||
var hitResult = paper.project.hitTest(path.position + [1, 1], {
|
||||
var hitResult = paper.project.hitTest(path.position.add(1, 1), {
|
||||
center: true
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue