Hit Region Detection for HTML5 Canvas. How to Listen to Click Events on Shapes | Hacker News Reader