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

How to deactivate box selection rotation? #29

Open
Pim92 opened this issue Jan 17, 2018 · 2 comments
Open

How to deactivate box selection rotation? #29

Pim92 opened this issue Jan 17, 2018 · 2 comments

Comments

@Pim92
Copy link

Pim92 commented Jan 17, 2018

Hello,

Web development beginner, I'm trying to optimize an existing code using openseadragon and jQuery to zoom or print selected picture after a dialogbox.
These two buttons are now ok, but I noticed after zone selecting, if I click outside the zone and move the mouse, box is rotating.
I tryed

var zoomOrPrintSelection = viewer.selection({
        allowRotation:  false,

but without success

How to deactivate this box rotation, please?

Thanks in advance

@Pim92
Copy link
Author

Pim92 commented Jan 19, 2018

Hello again,
no views or no ideas?...

@aitboudad
Copy link

For a workaround:

    zoomOrPrintSelection.outerTracker.dragHandler = null;
    zoomOrPrintSelection.outerTracker.dragEndHandler = null;

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