jqueryモバイルではないことがわかりました。私はオーバーライドする必要がありますが、使用していたスライドショープラグイン(jquery cycle2)です。これは私が思いついたコードです:
window.global_touches = null;
$('.page').on({
touchstart: function(e) {
e.preventDefault();
window.global_touches = e.originalEvent.touches;
},
touchmove: function(e) {
window.global_touches = e.originalEvent.touches;
},
touchend: function(e) {
window.global_touches = e.originalEvent.touches;
},
touchcancel: function(e) {
window.global_touches = e.originalEvent.touches;
clearHighlight();
}
});
$('.inner-slideshow').on('cycle-bootstrap', function(e, optionHash, API) {
API.origAdvanceSlide = API.advanceSlide;
API.advanceSlide = function(numberOfPositions) {
if (window.global_touches && window.global_touches.length >= 2) {
API.origAdvanceSlide.call(API, numberOfPositions);
}
};
});
何を試しましたか? – Mansuro