Skip to content

Commit

Permalink
remove onGrab callback
Browse files Browse the repository at this point in the history
  • Loading branch information
kingdido999 committed Dec 13, 2016
1 parent 65ebfde commit cb0e12e
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Open (zoom in) the matched image. Fires optional callback when the transition is

Close (zoom out) if currently zoomed-in.

#### `.grab(x, y [, start] [, callback])`
#### `.grab(x, y [, start])`

Grab the current image given a mouse/touch position and apply extra zoom in.

Expand Down Expand Up @@ -107,7 +107,6 @@ Takes an options object. Available options:
| scrollThreshold | Number | 40 | How much scrolling it takes before closing out. |
| onOpen | Function | null | A callback function that will be called when a target is opened and transition has ended. It will get the target element as the argument. |
| onClose | Function | null | Same as above, except fired when closed. |
| onGrab | Function | null | Same as above, except fired when grabbed. |
| onRelease | Function | null | Same as above, except fired when released. |
| onBeforeOpen | Function | null | A callback function that will be called before open. |
| onBeforeClose | Function | null | A callback function that will be called before close. |
Expand Down
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.6.0",
"version": "0.6.1",
"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.6.0",
"version": "0.6.1",
"description": "Image zoom that makes sense.",
"main": "src/zooming.js",
"repository": {
Expand Down
1 change: 0 additions & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const options = {
scrollThreshold: 40,
onOpen: null,
onClose: null,
onGrab: null,
onRelease: null,
onBeforeOpen: null,
onBeforeClose: null,
Expand Down

0 comments on commit cb0e12e

Please sign in to comment.