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(brushing): enable mouseup event outside chart element #120

Merged
merged 2 commits into from
Mar 26, 2019

Conversation

markov00
Copy link
Member

@markov00 markov00 commented Mar 25, 2019

Summary

This PR add the mouseup listener on the window element at the mousedown event for bushing.
we remove it after the brush is end.

We also disabled the tooltip when brushing.

Mar-25-2019 18-39-33

fix #119

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

  • This was checked for cross-browser compatibility, including a check against IE11
  • Proper documentation or storybook story was added for features that require explanation or tutorials
  • Unit tests were updated or added to match the most common scenarios
  • Each commit follows the convention

We now add the mouseup listener on the window element at the mousedown event and we remove it after
the brush is end. We also disabled the tooltip when brushing.

fix elastic#119
@markov00 markov00 requested a review from emmacunningham March 25, 2019 17:43
@codecov-io
Copy link

codecov-io commented Mar 25, 2019

Codecov Report

Merging #120 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
+ Coverage   90.41%   90.44%   +0.03%     
==========================================
  Files          31       31              
  Lines        1439     1445       +6     
  Branches      161      161              
==========================================
+ Hits         1301     1307       +6     
  Misses        125      125              
  Partials       13       13
Impacted Files Coverage Δ
src/state/chart_state.ts 95.53% <100%> (+0.1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc0d9dd...b5e7790. Read the comment docs.

Copy link
Contributor

@emmacunningham emmacunningham left a comment

Choose a reason for hiding this comment

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

tested locally & code LGTM

@markov00 markov00 merged commit 77d62f6 into elastic:master Mar 26, 2019
markov00 pushed a commit that referenced this pull request Mar 26, 2019
## [3.4.1](v3.4.0...v3.4.1) (2019-03-26)

### Bug Fixes

* **brushing:** enable mouseup event outside chart element ([#120](#120)) ([77d62f6](77d62f6)), closes [#119](#119)
@markov00
Copy link
Member Author

🎉 This PR is included in version 3.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Mar 26, 2019
@markov00 markov00 deleted the fix-brushing-mouseup branch April 16, 2019 12:06
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Brush end event missed
3 participants