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

Fix (partial) 1143 - Disabling annotation layer mouse mouse handlers in default mode #1200

Conversation

gigamorph
Copy link
Contributor

@gigamorph gigamorph commented Nov 16, 2016

This PR includes a partial fix to #1143

Mouse tool for the paperScope was still triggering mouse handlers when the canvas is hidden, making "drag and select" of texts unresponsive. This change explicitly deletes the mouseTool when entering the "default" mode and creates one when entering "pointer" mode.

This is not a complete fix in that
(1) While you can drag and select in default mode, you still cannot in pointer and edit modes. It is probably impossible to fix because of the way paper.js manages events
(2) It is could possibly a Chrome bug rather, because the problem is not occurring in FireFox or Safari.

Because otherwise mouse events keep firing in default mode when they shouldn't.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 61.275% when pulling 0e6a2c3 on yale-web-technologies:iiif_2.1.2_fix_1143 into 87ad661 on ProjectMirador:2.1.2.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 61.275% when pulling f42660b on yale-web-technologies:iiif_2.1.2_fix_1143 into 87ad661 on ProjectMirador:2.1.2.

@gigamorph gigamorph closed this Nov 16, 2016
@gigamorph gigamorph deleted the iiif_2.1.2_fix_1143 branch November 16, 2016 19:25
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

Successfully merging this pull request may close these issues.

None yet

2 participants