added doubletap support for i-pad and touch devices