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

Disable image dragability #28

Open
WulleBulle opened this issue Oct 31, 2013 · 2 comments
Open

Disable image dragability #28

WulleBulle opened this issue Oct 31, 2013 · 2 comments

Comments

@WulleBulle
Copy link

Hi trepmag,

thank you for this awesome script. Loving it.
I wonder if there is a setting or a solution to prevent image dragging within the viewport. Maybe you can help me out on this.

Thank u very much in advance

@WulleBulle
Copy link
Author

Found it.

$viewport.$image.draggable("destroy");

will do it.
Wrote a setting option "img_draggable: true/false" to make it easier.

Bye

Did I mention that I love jrac? ;)

@vgezer
Copy link

vgezer commented Sep 15, 2014

Woow! I also needed this, thanks!

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

2 participants