Adding platform dependent behaviour for onClick/onMouseEntered for mobile platforms without mouse cursor.
Improving code