Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iviewer does not allow dragging until zoomed out to edges #59

Open
HongPong opened this issue Nov 11, 2013 · 4 comments
Open

iviewer does not allow dragging until zoomed out to edges #59

HongPong opened this issue Nov 11, 2013 · 4 comments

Comments

@HongPong
Copy link

Hi, nifty plugin. When I set up a script to be zoomed in on a large photo, it does not have a draggable behavior until after i zoom out enough to reach the edge, and then zoom back in again. So if I zoom out far enough to expose the area beyond the top & bottom of the pic, then i can scroll left and right. It seems like the demo page for this script has same behavior, at least on Chrome/OSX. Is there a way to make everything more conventionally draggable immediately at load time? I could be mistaken or misconfigured something but it's working the same as the demo site. thank you.

@can3p
Copy link
Collaborator

can3p commented Nov 12, 2013

Can you try to reproduce this bug in other browsers? What version of browser/chrome do you have?

@HongPong
Copy link
Author

OSX 30.0.1599.101 . and Safari Version 6.1 (7537.71), and Firefox 25.0
i definitely get the behavior at
http://test.dpetroff.ru/jquery.iviewer/test/

@can3p
Copy link
Collaborator

can3p commented Nov 19, 2013

I've tried to reproduce it in the Firefox 25.0 and did not succeed.

The top image on the test should not be draggable (see the source code for comment),
the bottom image cannot be dragged on the page load because it has the value of the zoom to fit in the container. If I press zoom in I can drag the photo and if I zoom out to seed blank borders around the image then I cannot drag it anywhere, which is correct behavior.

Is there something that I've done incorrectly to reproduce the bug?

@umdstu
Copy link

umdstu commented Jan 28, 2015

@can3p - I think what @HongPong was possibly saying that he wants to be able to drag the image around without having to require it be zoomed in, at all.

For example, in either example in the link above, without modifying the images, be able to click and drag it up/down/left/right. I imagine the 'canvas' within the bounding box would need to be possibly 9 times the size of the image itself.

| x | x | x |
| x | o | x |
| x | x | x |

Where 'o' is the image, and the left and right |'s are the bound, when zoomed out to 100%. dragging the item would then possible I think.

Does that make any more sense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants