-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Howdy,
I wanted to share that I could not get this to trigger on iPhone chrome/safari.
I guess by default they pass passive as true, so I just added passive:false as the third params to the privates.listenCodeGestureSequence function.
seen here:
privates.listenCodeGestureSequence = function () {
privates.originalCodeGesture = privates.konamiCodeGesture;
privates.stopCodeGestureSequence();
privates.listener.addEventListener("touchstart", privates.codeSequenceEventTouchStart, { passive: false });
// privates.listener.addEventListener("touchstart", privates.codeSequenceEventTouchStart);
privates.listener.addEventListener("touchmove", privates.codeSequenceEventTouchMove, { passive: false });
// privates.listener.addEventListener("touchmove", privates.codeSequenceEventTouchMove);
privates.listener.addEventListener("touchend", privates.codeSequenceEventTouchEnd, { passive: false });
// privates.listener.addEventListener("touchend", privates.codeSequenceEventTouchEnd, false);
};
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels