added mobile device detection to improve inputPriority handling