Browse Source

Ensure taps aren't accidentally sent to the modal

Without stopping the propagation of the event which pops up the modal,
it was possible for the modal itself to receive the same event.
pull/169/head
Eric Florenzano 12 years ago
parent
commit
e7939f55e1
  1. 3
      lib/js/modals.js

3
lib/js/modals.js

@ -19,7 +19,8 @@
};
window.addEventListener('touchend', function (event) {
event.stopPropagation();
var modal = getModal(event);
if (modal) modal.classList.toggle('active');
});
}();
}();

Loading…
Cancel
Save