Fixing pointerEvents issue with debugLayer