Extracted duplicate functions from mobile/desktop events