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: Only show create dialog when creating new point annotations #29

Merged
merged 6 commits into from
Nov 14, 2017

Conversation

pramodsum
Copy link
Contributor

Initial PR comments #3 that was auto-closed by Github

iphone
tablet

@pramodsum pramodsum force-pushed the bugs branch 4 times, most recently from d799660 to 7dcae58 Compare November 14, 2017 02:42
@@ -149,7 +149,7 @@ class DrawingModeController extends AnnotationModeController {
* @return {void}
*/
bindDOMListeners() {
if (this.isTouchCompatible) {
if (this.isMobile && this.hasTouch) {
this.annotatedElement.addEventListener('touchstart', this.handleSelection);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if you're on a desktop browser that has touch like a surface?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a ticket to clarify these checks

this.createDialog.addListener(CREATE_EVENT.init, () => this.emit(THREAD_EVENT.pending, TYPES.point));

this.createDialog.addListener(CREATE_EVENT.cancel, () => {
const thread = this.getThreadByID(this.pendingThreadID);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break these out into testable functions?

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.

3 participants