Update to more accurately obtain the layer nearest to the touch point