Skip to content

Commit

Permalink
fix touch close
Browse files Browse the repository at this point in the history
  • Loading branch information
kingdido999 committed Dec 12, 2016
1 parent f62631d commit 2d6f8fe
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zooming",
"version": "0.5.19",
"version": "0.5.20",
"homepage": "https://github.com/kingdido999/zooming",
"authors": [
"Desmond Ding <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion build/zooming.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/zooming.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/zooming.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/zooming.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zooming",
"version": "0.5.19",
"version": "0.5.20",
"description": "Image zoom that makes sense.",
"main": "src/zooming.js",
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion src/zooming.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ const eventHandler = {
touchend: function (e) {
if (e.targetTouches.length === 0) {
clearTimeout(pressTimer)
api.release()
if (released) api.close()
else api.release()
}
}
}
Expand Down

0 comments on commit 2d6f8fe

Please sign in to comment.