Last active
August 29, 2015 13:56
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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