cdglabs / apparatus

A hybrid graphics editor and programming environment for creating interactive diagrams.
http://aprt.us/
MIT License
1.03k stars 58 forks source link

Should hit-detection for complex shapes be based on bounding box or opaque regions? #65

Open joshuahhh opened 7 years ago

joshuahhh commented 7 years ago

Text just uses the bounding box. But when I added Image, I included fancy hit-detection which doesn't recognizes hits from transparent parts of the image.

This seems needlessly inconsistent. Which should we use?

stebanos commented 7 years ago

It feels very weird not being able to pick up an item when you click on transparent areas, as with Image right now.

electronicwhisper commented 7 years ago

I say use bounding box.