Skip to content
This repository was archived by the owner on Aug 1, 2020. It is now read-only.

Commit 8612102

Browse files
author
Fengyuan Chen
committed
Released v0.1.1
1 parent 2733f11 commit 8612102

9 files changed

+44
-30
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

33

4+
## 0.1.1 (Oct 7, 2015)
5+
6+
- Fixed the issue of modal closing after zoomed in and zoomed out.
7+
8+
49
## 0.1.0 (Sep 2, 2015)
510

611
- Supports 2 modes: "modal" (default), "inline"

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,12 @@ As a jQuery plugin, you also need to see the [jQuery Browser Support](http://jqu
651651
652652
653653
654+
## Versioning
655+
656+
Maintained under the [Semantic Versioning guidelines](http://semver.org/).
657+
658+
659+
654660
## [License](LICENSE.md)
655661
656-
Released under the [MIT](http://opensource.org/licenses/mit-license.html) license.
662+
[MIT](http://opensource.org/licenses/MIT) © [Fengyuan Chen](http://github.com/fengyuanchen)

demo/index.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@
3333
</div>
3434
<nav class="collapse navbar-collapse" id="navbar-collapse-1" role="navigation">
3535
<ul class="nav navbar-nav navbar-right">
36-
<li><a href="http://github.com/fengyuanchen/viewer/tree/v0.1.0/README.md">Docs</a></li>
37-
<li><a href="http://github.com/fengyuanchen/viewer">Github</a></li>
38-
<li><a href="http://chenfengyuan.com">About</a></li>
36+
<li><a href="https://github.com/fengyuanchen/viewer/blob/master/README.md">Docs</a></li>
37+
<li><a href="https://github.com/fengyuanchen/viewer">Github</a></li>
38+
<li><a href="https://chenfengyuan.com">About</a></li>
39+
<li><a href="https://fengyuanchen.github.io">More</a></li>
3940
</ul>
4041
</nav>
4142
</div>
@@ -44,7 +45,7 @@
4445
<!-- Jumbotron -->
4546
<div class="jumbotron docs-jumbotron">
4647
<div class="container">
47-
<h1>Viewer <small class="version">v0.1.0</small></h1>
48+
<h1>Viewer</h1>
4849
<p class="lead">A simple jQuery image viewing plugin.</p>
4950
</div>
5051
</div>

dist/viewer.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Viewer v0.1.0
2+
* Viewer v0.1.1
33
* https://github.com/fengyuanchen/viewer
44
*
55
* Copyright (c) 2015 Fengyuan Chen
66
* Released under the MIT license
77
*
8-
* Date: 2015-09-02T09:08:17.223Z
8+
* Date: 2015-10-07T06:34:31.370Z
99
*/
1010
.viewer-zoom-in:before,
1111
.viewer-zoom-out:before,

dist/viewer.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Viewer v0.1.0
2+
* Viewer v0.1.1
33
* https://github.com/fengyuanchen/viewer
44
*
55
* Copyright (c) 2015 Fengyuan Chen
66
* Released under the MIT license
77
*
8-
* Date: 2015-09-02T09:08:17.666Z
8+
* Date: 2015-10-07T06:34:31.917Z
99
*/
1010

1111
(function (factory) {
@@ -815,11 +815,6 @@
815815

816816
if (action) {
817817
event.preventDefault();
818-
819-
if (action === 'move' && options.transition) {
820-
this.$image.removeClass(CLASS_TRANSITION);
821-
}
822-
823818
this.action = action;
824819

825820
// IE8 has `event.pageX/Y`, but not `event.originalEvent.pageX/Y`
@@ -831,6 +826,8 @@
831826

832827
mousemove: function (event) {
833828
var options = this.options;
829+
var action = this.action;
830+
var $image = this.$image;
834831
var originalEvent = event.originalEvent;
835832
var touches = originalEvent && originalEvent.touches;
836833
var e = event;
@@ -856,9 +853,13 @@
856853
e = touches[0];
857854
}
858855

859-
if (this.action) {
856+
if (action) {
860857
event.preventDefault();
861858

859+
if (action === 'move' && options.transition && $image.hasClass(CLASS_TRANSITION)) {
860+
$image.removeClass(CLASS_TRANSITION);
861+
}
862+
862863
this.endX = e.pageX || originalEvent && originalEvent.pageX;
863864
this.endY = e.pageY || originalEvent && originalEvent.pageY;
864865

dist/viewer.min.css

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/viewer.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

+9-8
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@
3333
</div>
3434
<nav class="collapse navbar-collapse" id="navbar-collapse-1" role="navigation">
3535
<ul class="nav navbar-nav navbar-right">
36-
<li><a href="http://github.com/fengyuanchen/viewer/tree/v0.1.0/README.md">Docs</a></li>
37-
<li><a href="http://github.com/fengyuanchen/viewer">Github</a></li>
38-
<li><a href="http://chenfengyuan.com">About</a></li>
36+
<li><a href="https://github.com/fengyuanchen/viewer/tree/v0.1.1/README.md">Docs</a></li>
37+
<li><a href="https://github.com/fengyuanchen/viewer">Github</a></li>
38+
<li><a href="https://chenfengyuan.com">About</a></li>
39+
<li><a href="https://fengyuanchen.github.io">More</a></li>
3940
</ul>
4041
</nav>
4142
</div>
@@ -44,7 +45,7 @@
4445
<!-- Jumbotron -->
4546
<div class="jumbotron docs-jumbotron">
4647
<div class="container">
47-
<h1>Viewer <small class="version">v0.1.0</small></h1>
48+
<h1>Viewer <small class="version">v0.1.1</small></h1>
4849
<p class="lead">A simple jQuery image viewing plugin.</p>
4950
</div>
5051
</div>
@@ -57,11 +58,11 @@ <h1 class="page-header">Overview</h1>
5758
<h3 class="page-header">Options</h3>
5859
<div class="docs-toggles">
5960
<div class="btn-group btn-group-justified" data-toggle="buttons" role="group">
60-
<label class="btn btn-primary active">
61-
<input type="radio" name="inline" data-value="false" autocomplete="off" checked> Modal mode
62-
</label>
6361
<label class="btn btn-primary">
64-
<input type="radio" name="inline" data-value="true" autocomplete="off"> Inline mode
62+
<input type="radio" name="inline" data-value="false" autocomplete="off"> Modal mode
63+
</label>
64+
<label class="btn btn-primary active">
65+
<input type="radio" name="inline" data-value="true" autocomplete="off" checked> Inline mode
6566
</label>
6667
</div>
6768
<button class="btn btn-primary btn-block hidden-md hidden-lg" id="toggle-options" data-target="#options" data-toggle="collapse" aria-expanded="true">Toggle options</button>

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "imageviewer",
33
"description": "A simple jQuery image viewing plugin.",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"main": "dist/viewer.js",
66
"keywords": [
77
"image",

0 commit comments

Comments
 (0)