Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

v3.0.3

  • Loading branch information...
commit 7e924d2a3fd955ce626068aa9b9c22f5790cf8e8 1 parent 1d6cfea
Ste Brennan authored
8 README.md
View
@@ -20,11 +20,13 @@ It'd be fantastic to see how you have implemented PhotoSwipe on your site! We're
-Latest Release v3.0.2
+Latest Release v3.0.3
---------------------
-[Download](http://github.com/downloads/codecomputerlove/PhotoSwipe/code.photoswipe-3.0.2.zip)
+[Download](http://github.com/downloads/codecomputerlove/PhotoSwipe/code.photoswipe-3.0.3.zip)
-- Fixed issue on iOS 5, first time an image is zoomed in, the zoomed image is hidden from view immediately.
+- Added new example - 14-tap-image-go-to-url.html
+
+- Ensured that only iOS captures gesture events
**Changes for v3**
4 build.number
View
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
-#Fri Nov 04 09:11:19 GMT 2011
-build.number=32
+#Mon Nov 07 09:53:33 GMT 2011
+build.number=35
2  build.properties
View
@@ -5,7 +5,7 @@
project.description = PhotoSwipe
project.src.dir = src
-project.build.version = 3.0.2
+project.build.version = 3.0.3
project.build.year = 2011
project.build.workdir = work
4 build.xml
View
@@ -215,6 +215,10 @@
</antcall>
<antcall target="versionStamp">
+ <param name="filePath" value="${project.build.workdir}/examples/14-tap-image-go-to-url.html"/>
+ </antcall>
+
+ <antcall target="versionStamp">
<param name="filePath" value="${project.build.workdir}/examples/ajax-gallery1.html"/>
</antcall>
8 src/change.log
View
@@ -13,3 +13,11 @@ Initial release
----------------------------
- Fixed issue on iOS 5, first time an image is zoomed in, the zoomed image is hidden from view immediately.
+
+
+3.0.3 07.11.11 - Ste Brennan
+----------------------------
+
+- Added new example - 14-tap-image-go-to-url.html
+
+- Ensured that only iOS captures gesture events
104 src/examples/14-tap-image-go-to-url.html
View
@@ -0,0 +1,104 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>PhotoSwipe</title>
+ <meta name="author" content="Ste Brennan - Code Computerlove - http://www.codecomputerlove.com/" />
+ <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <link href="styles.css" type="text/css" rel="stylesheet" />
+
+ <link href="../photoswipe.css" type="text/css" rel="stylesheet" />
+
+ <script type="text/javascript" src="../lib/klass.min.js"></script>
+ <script type="text/javascript" src="../code.photoswipe-%%version%%.min.js"></script>
+
+
+ <script type="text/javascript">
+
+ (function(window, PhotoSwipe){
+
+ document.addEventListener('DOMContentLoaded', function(){
+
+ var
+ options = {
+
+ getImageMetaData: function(el){
+ return {
+ relatedUrl: el.getAttribute('data-related-url')
+ }
+ }
+
+ },
+ instance = PhotoSwipe.attach( window.document.querySelectorAll('#Gallery a'), options );
+
+
+ instance.addEventHandler(PhotoSwipe.EventTypes.onTouch, function(e){
+
+ if (e.action === 'tap'){
+ var currentImage = instance.getCurrentImage();
+ window.open(currentImage.metaData.relatedUrl);
+ }
+
+ });
+
+
+ }, false);
+
+
+ }(window, window.Code.PhotoSwipe));
+
+ </script>
+
+</head>
+<body>
+
+<div id="Header">
+ <a href="http://www.codecomputerlove.com"><img src="images/codecomputerlovelogo.gif" width="230" height="48" alt="Code Computerlove" /></a>
+</div>
+
+<div id="MainContent">
+
+ <div class="page-content">
+ <h1>PhotoSwipe</h1>
+ </div>
+
+ <ul id="Gallery" class="gallery">
+
+ <li><a href="images/full/001.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/001.jpg"><img src="images/thumb/001.jpg" alt="Image 001" /></a></li>
+ <li><a href="images/full/002.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/002.jpg"><img src="images/thumb/002.jpg" alt="Image 002" /></a></li>
+ <li><a href="images/full/003.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/003.jpg"><img src="images/thumb/003.jpg" alt="Image 003" /></a></li>
+ <li><a href="images/full/004.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/004.jpg"><img src="images/thumb/004.jpg" alt="Image 004" /></a></li>
+ <li><a href="images/full/005.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/005.jpg"><img src="images/thumb/005.jpg" alt="Image 005" /></a></li>
+ <li><a href="images/full/006.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/006.jpg"><img src="images/thumb/006.jpg" alt="Image 006" /></a></li>
+ <li><a href="images/full/007.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/007.jpg"><img src="images/thumb/007.jpg" alt="Image 007" /></a></li>
+ <li><a href="images/full/008.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/008.jpg"><img src="images/thumb/008.jpg" alt="Image 008" /></a></li>
+ <li><a href="images/full/009.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/009.jpg"><img src="images/thumb/009.jpg" alt="Image 009" /></a></li>
+ <li><a href="images/full/010.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/010.jpg"><img src="images/thumb/010.jpg" alt="Image 010" /></a></li>
+ <li><a href="images/full/011.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/011.jpg"><img src="images/thumb/011.jpg" alt="Image 011" /></a></li>
+ <li><a href="images/full/012.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/012.jpg"><img src="images/thumb/012.jpg" alt="Image 012" /></a></li>
+ <li><a href="images/full/013.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/013.jpg"><img src="images/thumb/013.jpg" alt="Image 013" /></a></li>
+ <li><a href="images/full/014.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/014.jpg"><img src="images/thumb/014.jpg" alt="Image 014" /></a></li>
+ <li><a href="images/full/015.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/015.jpg"><img src="images/thumb/015.jpg" alt="Image 015" /></a></li>
+ <li><a href="images/full/016.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/016.jpg"><img src="images/thumb/016.jpg" alt="Image 016" /></a></li>
+ <li><a href="images/full/017.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/017.jpg"><img src="images/thumb/017.jpg" alt="Image 017" /></a></li>
+ <li><a href="images/full/018.jpg" data-related-url="http://www.photoswipe.com/latest/examples/images/full/018.jpg"><img src="images/thumb/018.jpg" alt="Image 018" /></a></li>
+
+ </ul>
+
+</div>
+
+
+<div id="Footer">
+ <p><small>&copy; 2011 Code Computerlove Ltd - new media agency / digital marketing agency</small></p>
+
+ <div id="SocialLinks">
+ <a href="http://blog.codecomputerlove.com/"><img src="images/blogicon.png" width="32" height="32" alt="Blog" /></a>
+ <a href="http://www.twitter.com/computerlovers"><img src="images/twittericon.png" width="32" height="32" alt="Twitter" /></a>
+ <a href="http://www.facebook.com/CodeComputerlove"><img src="images/facebookicon.png" width="32" height="32" alt="Facebook" /></a>
+ <a href="http://www.flickr.com/photos/codecomputerlove"><img src="images/flickricon.png" width="32" height="32" alt="Flickr" /></a>
+ </div>
+
+</div>
+
+</body>
+</html>
2  src/uilayer.class.js
View
@@ -75,7 +75,7 @@
this.supr(this.el, {
swipe: true,
move: true,
- gesture: true,
+ gesture: Util.Browser.iOS,
doubleTap: true,
preventDefaultTouchEvents: this.settings.preventDefaultTouchEvents
});
Please sign in to comment.
Something went wrong with that request. Please try again.