click的300ms延遲響應(yīng)
手機(jī)早期,瀏覽器有在屏幕點(diǎn)2下,瀏覽器放大因此系統(tǒng)做處理练对,當(dāng)觸摸一次后,300ms無第二次吹害,才認(rèn)為是click事件
手勢(shì)事件
touchstart, touchmove, touchend, touchcancel
觸摸導(dǎo)致屏幕滾動(dòng)螟凭,可以用event.preventDefault()阻止默認(rèn)事件行為
event.touches:當(dāng)前觸摸操作的touch對(duì)象數(shù)組
兩個(gè)手指在觸屏:event.touches.length = 2;
event.targetTouches:目標(biāo)touch對(duì)象數(shù)組
event.changedTouches:上次觸摸發(fā)生了改變的touch對(duì)象數(shù)組
觸摸事件
Gestures針對(duì)IOS設(shè)備,在兩個(gè)以上手指觸摸時(shí)觸發(fā)
Gesturestart, Gesturechange, Gestureend
屏幕旋轉(zhuǎn)事件
window.onorientationchange;
window.orientation;
雜
-webkit-touch-callout:none; //禁止IOS彈操作窗口
-webkit-user-select:none; //禁止用戶選中文字
input::-webkit-input-speech-button{display:none}; //安卓去輸入框語音按鈕