Skip to content

Commit

Permalink
Implemented pan function, jslinted
Browse files Browse the repository at this point in the history
  • Loading branch information
escobar5 committed Jun 21, 2013
1 parent 824e276 commit 1411fb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions examples/complete-map/map.init.js
Expand Up @@ -42,6 +42,10 @@ jQuery(function ($) {
e.preventDefault();
});

$("#others #moveTopLeft").click(function (e) {
panZoom.pan(1,1);
});

function animateOver() {
if (this.data("hoverFill")) {
this.attr("fill", this.data("hoverFill"));
Expand Down
2 changes: 1 addition & 1 deletion src/raphael.pan-zoom.js
Expand Up @@ -61,7 +61,7 @@
},

pan: function (deltaX, deltaY) {
this.applyPan(deltaX, deltaY);
this.applyPan(deltaX * -1, deltaY * -1);
},

isDragging: function () {
Expand Down
2 changes: 1 addition & 1 deletion src/raphael.pan-zoom.min.js

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

0 comments on commit 1411fb4

Please sign in to comment.