Skip to content

Instantly share code, notes, and snippets.

@mistakster
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mistakster/8797591 to your computer and use it in GitHub Desktop.
Save mistakster/8797591 to your computer and use it in GitHub Desktop.
For the current project, I need Fotorama ( http://fotorama.io/ ) gallery with html frames. Fotrama perfectly handle such situations, but it prevents normal interaction within this frames. I found that I could suppress several events on html frames to bring expected user experience back.
$ele.fotorama()
.find(".fotorama__html")
.on("click mousedown MSPointerDown touchstart", function (e) {
e.preventDefault();
e.stopPropagation();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment