paperjs / paper.js

The Swiss Army Knife of Vector Graphics Scripting – Scriptographer ported to JavaScript and the browser, using HTML5 Canvas. Created by @lehni & @puckey

Home Page:http://paperjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onClick (and other mouse events) break with a lot of elements on canvas

nemo opened this issue · comments

Description/Steps to reproduce

Draw 400 circles side by side and add an onClick element to them (or use hitTarget). Paper ends up picking elements quite far from the cursor itself.

Link to reproduction test-case

Here's a Codepan of this bug: https://codepen.io/nimsical/pen/mdgyoMK

Expected result

Expected result would be to have the right element's onClick handler be called.

Additional information