Skip to content

Commit

Permalink
wishliist updated, move cursor css added to img when draggable enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
benlumley committed Mar 5, 2011
1 parent 4e24d09 commit 733ef3e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -169,8 +169,7 @@ You can manually change the image position using something like:
Few extra utility methods
Rotation (supported browsers only)
Draggable snap
Moz hand draggy cursor
Fix diving to corner as you zoom out past limits
Zoom should zoom the image towards the point that is currently at center of viewport - currently it zooms to center of image wherever that may be, so if zoomed in, it effectively pans for you.
Click controls should loop while mouse down


9 changes: 5 additions & 4 deletions example/style.css
Expand Up @@ -25,10 +25,6 @@ h3 {
}

/* if you are reading this, the below is the start of the css for the image and wrapper div for the panner - thats probably what you are interested in */
div.me img {
float: left;
margin-right: 20px;
}

div#pan {
border: #dddddd 1px solid;
Expand All @@ -53,6 +49,11 @@ div.me {
margin-bottom: 20px;
}

div.me img {
float: left;
margin-right: 20px;
}

div#controls, div#output, div#images {
width: 380px;
border: #dddddd 1px solid;
Expand Down
5 changes: 5 additions & 0 deletions jquery-panzoom-0.9.0.js
Expand Up @@ -314,6 +314,11 @@
'top': 0,
'left': 0
});
if (settings.draggable) {
this.css({
'cursor': 'move'
});
}
}

function validatePosition() {
Expand Down

0 comments on commit 733ef3e

Please sign in to comment.