Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ensure taps aren't accidentally sent to the modal #169

Closed
wants to merge 1 commit into from

1 participant

@ericflo

Without stopping the propagation of the event which pops up the modal,
it was possible for the modal itself to receive the same event.

@ericflo ericflo 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.
e7939f5
@ericflo ericflo closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 27, 2013
  1. @ericflo

    Ensure taps aren't accidentally sent to the modal

    ericflo authored
    Without stopping the propagation of the event which pops up the modal,
    it was possible for the modal itself to receive the same event.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/js/modals.js
View
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');
});
-}();
+}();
Something went wrong with that request. Please try again.