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

Contextmenu updates #782

Merged
merged 14 commits into from
Apr 6, 2024
Merged

Contextmenu updates #782

merged 14 commits into from
Apr 6, 2024

Conversation

donbyron02
Copy link
Contributor

@donbyron02 donbyron02 commented Apr 2, 2024

This PR contains updates for Context Menu functionality:

  1. Add support for context menu on Shapes
  2. Fill out the stub for longtouch contextmenu activation
  3. Add the mouseevent to the call to userContextMenuHandler
  4. Suppress mouseup / touchend events after context menu (preventing clickSelection events, you may not agree with this change)
  5. testcontextmenu test covering all of the above

Minor: Renamed contextMenuEnabledAtoms to contextMenuEnabledObjects

The test ended up being complicated, especially because glcheck looks at a single canvas, and also because there are differences in how glcheck and jest simulate the page. The test can definitely be improved or clarified, but it is working.

Also: the commit history for this isn't as clean as I would have preferred. You may wish to do "Squash and Merge"
I can also clean it up if you prefer.

Copy link

codecov bot commented Apr 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.47%. Comparing base (83f7797) to head (f93dae7).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #782      +/-   ##
==========================================
+ Coverage   75.01%   75.47%   +0.46%     
==========================================
  Files         141      141              
  Lines       11610    11619       +9     
  Branches     2161     2165       +4     
==========================================
+ Hits         8709     8770      +61     
+ Misses       2597     2549      -48     
+ Partials      304      300       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@donbyron02 donbyron02 marked this pull request as draft April 2, 2024 17:41
@donbyron02 donbyron02 marked this pull request as ready for review April 2, 2024 20:54
@dkoes dkoes merged commit 9ecd79c into 3dmol:master Apr 6, 2024
7 checks passed
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