1. 程式人生 > >解決 Cordova 打包 vue項目為 APP 後,在安卓平臺下 touchMove 事件不生效的問題

解決 Cordova 打包 vue項目為 APP 後,在安卓平臺下 touchMove 事件不生效的問題

div 註意 項目 實現 部分 body fault event tde

Cordova + vue 打包成 APP 後在部分安卓機上面,左右滑動無法正常的實現頁面滾動邏輯。

解決方案:

  在 touchMove 的時候,通過 event.preventDefault() 來解決

註意:

transform 事件是有兼容性的,可不要忘記加前綴。

解決 Cordova 打包 vue項目為 APP 後,在安卓平臺下 touchMove 事件不生效的問題