Fixing bug with PointerEvent action trigger