Skip to content

Commit

Permalink
Little bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
indrimuska committed Nov 4, 2015
1 parent 1040a1b commit ca2a1c9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zoomify",
"version": "0.2.0",
"version": "0.2.1",
"authors": [
"Indri Muska <[email protected]>"
],
Expand Down
14 changes: 7 additions & 7 deletions dist/zoomify.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
this.$image.addClass('zoomed');

var offset = this.$image.offset(),
width = this.$image.width(),
height = this.$image.height(),
width = this.$image.outerWidth(),
height = this.$image.outerHeight(),
wWidth = $(window).width(),
wHeight = $(window).height(),
scaleX = wWidth / width,
Expand All @@ -97,11 +97,11 @@
this.transform(this.$image, transform);

this._zooming = true;
that.$image.trigger('zoom-in.zoomify');
this.$image.trigger('zoom-in.zoomify');
setTimeout(function () {
that.addShadow();
that.transformScaleAndTranslate(scale, translateX, translateY, function () {
this._zooming = false;
that._zooming = false;
that.$image.trigger('zoom-in-complete.zoomify');
});
that._zoomed = true;
Expand All @@ -111,10 +111,10 @@
var that = this;

this._zooming = true;
that.$image.trigger('zoom-out.zoomify');
this.$image.trigger('zoom-out.zoomify');
this.transformScaleAndTranslate(1, 0, 0, function () {
this._zooming = false;
that.$image.trigger('zoom-out-complete.zoomify');
that._zooming = false;
that.$image.removeClass('zoomed').trigger('zoom-out-complete.zoomify');
});
this.removeShadow();
this._zoomed = false;
Expand Down
4 changes: 2 additions & 2 deletions dist/zoomify.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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zoomify",
"version": "0.2.0",
"version": "0.2.1",
"description": "Zoomify is a jQuery plugin for simple lightboxes with zoom effect.",
"main": "Gruntfile.js",
"repository": {
Expand Down
14 changes: 7 additions & 7 deletions src/zoomify.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
this.$image.addClass('zoomed');

var offset = this.$image.offset(),
width = this.$image.width(),
height = this.$image.height(),
width = this.$image.outerWidth(),
height = this.$image.outerHeight(),
wWidth = $(window).width(),
wHeight = $(window).height(),
scaleX = wWidth / width,
Expand All @@ -97,11 +97,11 @@
this.transform(this.$image, transform);

this._zooming = true;
that.$image.trigger('zoom-in.zoomify');
this.$image.trigger('zoom-in.zoomify');
setTimeout(function () {
that.addShadow();
that.transformScaleAndTranslate(scale, translateX, translateY, function () {
this._zooming = false;
that._zooming = false;
that.$image.trigger('zoom-in-complete.zoomify');
});
that._zoomed = true;
Expand All @@ -111,10 +111,10 @@
var that = this;

this._zooming = true;
that.$image.trigger('zoom-out.zoomify');
this.$image.trigger('zoom-out.zoomify');
this.transformScaleAndTranslate(1, 0, 0, function () {
this._zooming = false;
that.$image.trigger('zoom-out-complete.zoomify');
that._zooming = false;
that.$image.removeClass('zoomed').trigger('zoom-out-complete.zoomify');
});
this.removeShadow();
this._zoomed = false;
Expand Down

0 comments on commit ca2a1c9

Please sign in to comment.