Detect mouse click location within canvas
问题 I'm having a real issue trying to define a function for where I click on empty space. So far I have managed to define where I click on an object - of which there are 10 - but now I need a separate function for when I am not clicking on any of the objects. The general idea can be found at http://deciballs.co.uk/experience.html. The objects are the rings. My code is below... Any ideas? var shapeObj = function (context, canvas, settingsBox, radius) { this.ctx = context; this.canvas = canvas;