fixed issue related to pointercancel event