issue #606 moved evt.layerX/Y check at the end of the double pipe chain