1
を見つけることができません:は、私は私のコードベースでこの機能を持っているイベント定義に
let touch = true;
function init() {
let firstMousemoveHasOccured = false;
$(window).on('mousemove.touchdetection',() => {
if (firstMousemoveHasOccured) {
touch = false;
$(window).off('mousemove.touchdetection touchend.touchdetection');
} else {
firstMousemoveHasOccured = true;
}
});
$(window).on('touchend.touchdetection',() => {
touch = true;
$(window).off('mousemove.touchdetection touchend.touchdetection');
});
}
イベントmousemove.touchdetection
は、標準のイベントではありませんので、これはどこから来ていますか?
伝説 - ありがとう:) – JoeTidee