Skip to content

Support hover events#44

Merged
compwright merged 1 commit into
chartjs:masterfrom
compwright:feature-annotation-events
Dec 2, 2016
Merged

Support hover events#44
compwright merged 1 commit into
chartjs:masterfrom
compwright:feature-annotation-events

Conversation

@compwright

Copy link
Copy Markdown
Collaborator

Also fixes a click event duplication when a dblclick event happens.

Also fixes a click event duplication when a dblclick event happens
@compwright compwright force-pushed the feature-annotation-events branch from 39dfe70 to 816d253 Compare December 1, 2016 21:35
Comment thread README.md
// annotation events array or the event handler will not be called.
// See https://developer.mozilla.org/en-US/docs/Web/Events for a list of
// supported mouse events.
onMouseenter: function(e) {},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would it be a good idea to support touch events as well?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Eventually, yes, but it will need some care to do it right in a way that works cross-browser and also works for the user. Probably need some hit radius logic added, and integration with Hammer.js. That's more than I can get into right now.

Comment thread src/events.js
}
}

// Suppress duplicate click events during a double click

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like this comment. Very detailed :)

@compwright compwright merged commit 5d14e26 into chartjs:master Dec 2, 2016
compwright added a commit to compwright/chartjs-plugin-annotation that referenced this pull request Dec 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants