mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Bring back accidentally removed hit-test optimization in event handling.
See comment.
This commit is contained in:
parent
739788b67e
commit
ab24f92373
1 changed files with 1 additions and 1 deletions
|
@ -1296,7 +1296,7 @@ new function() { // Injection scope for event handling on the browser
|
||||||
// Run the hit-test on items first, but only if we're required to do
|
// Run the hit-test on items first, but only if we're required to do
|
||||||
// so for this given mouse event, see hitItems, #_countItemEvent():
|
// so for this given mouse event, see hitItems, #_countItemEvent():
|
||||||
var inView = this.getBounds().contains(point),
|
var inView = this.getBounds().contains(point),
|
||||||
hit = inView && view._project.hitTest(point, {
|
hit = hitItems && inView && view._project.hitTest(point, {
|
||||||
tolerance: 0,
|
tolerance: 0,
|
||||||
fill: true,
|
fill: true,
|
||||||
stroke: true
|
stroke: true
|
||||||
|
|
Loading…
Reference in a new issue