How can I upon tapping a layer, get the X/Y position of the tap relative to the layer's area?
If I grab the users tap X/Y position, it's relative to the screen, which is fine, but when I grab those coordinates upon tapping a rectangle because I want to make a Ripple effect on that rectangle (like Material Design), I need to determine the X/Y of the tap within the box's area, not the screen's area.
I've been looking at the demo for the material effect, but I'm struggling to pull the position on the tap in my project. http://share.framerjs.com/fgrom3h8dgf1/
I figure there is some means to subtract the overall location of the rectangle in relation to the screen, but I'm struggling on what things to subtract out.