-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add doubleclick events #255
Conversation
on dragbox double clicks and select/lasso double clicks
- so that Plots is consistent from suite to suite.
- so that test Chrome and FF can agree
var Plots = Plotly.Plots; | ||
|
||
beforeEach(function() { | ||
this.modulesKeys = Object.keys(Plots.modules); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid using this
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
You're not a fan of the jasmine this
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually on second look, I'm ok with that. Didn't know that it was jasmine convention and that the this
is cleared between specs.
- double click on a data pt now (1) fires a click event, (2) fires a double click event and (3) fires another click event, with the same event data - double clicking not on a data pt fires a double click event with null event data
- to not introduce more complexity into our set of event data
Looks good. Nice tests too. Seems like 💃 |
@@ -171,6 +171,8 @@ module.exports = function prepSelect(e, startX, startY, dragOptions, mode) { | |||
searchInfo = searchTraces[i]; | |||
searchInfo.selectPoints(searchInfo, false); | |||
} | |||
|
|||
gd.emit('plotly_deselect', null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi @cpsievert
💥 |
As requested by @cpsievert in plotly/plotly.R#416 .
This PR also introduces jasmine tests for select and lasso event data.
Part of #145