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

Issue 2950 - clicking on elements when in full page preview toggles the mode back to split. #2952

Merged
merged 5 commits into from
Apr 12, 2019

Conversation

MiloTodt
Copy link
Contributor

Description

Refactoring of the handleMouseDown event such that the full page preview pane is not toggled off whenever any element -that is not the <body> of the page- is clicked. Anything like a Button, Video, link etc should no longer toggle the view back to split.

While I was at it, I cleaned up this function greatly, which should help the efforts of future developers.

Issue fixed

fix #2950

Type of changes

  • ✅ Bug fix (Change that fixed an issue)
  • ⚪ Breaking change (Change that can cause existing functionality to change)
  • ✅ Improvement (Change that improves the code. Maybe performance or development improvement)
  • ⚪ Feature (Change that adds new functionality)
  • ⚪ Documentation change (Change that modifies documentation. Maybe typo fixes)

Checklist:

  • ✅ My code follows the project code style
  • ⚪ I have written test for my code and it has been tested
  • ✅ All existing tests have been passed
  • ✅ I have attached a screenshot/video to visualize my change if possible

@MiloTodt
Copy link
Contributor Author

I noticed that this file has quite a bit of CSS at the top. Is there reasons for it to be directly inside this file as opposed to a .styl file as all other files have in this folder?

@ZeroX-DG ZeroX-DG added the awaiting review ❇️ Pull request is awaiting a review. label Mar 29, 2019
Copy link
Member

@ZeroX-DG ZeroX-DG left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@ZeroX-DG ZeroX-DG added approved 👍 Pull request has been approved by sufficient reviewers. and removed awaiting review ❇️ Pull request is awaiting a review. labels Mar 31, 2019
@Rokt33r Rokt33r removed the approved 👍 Pull request has been approved by sufficient reviewers. label Apr 12, 2019
@Rokt33r Rokt33r added this to the v0.11.15 milestone Apr 12, 2019
@Rokt33r Rokt33r merged commit e655c20 into BoostIO:master Apr 12, 2019
@MiloTodt MiloTodt deleted the Issue_2950.unfold_preview_fix branch April 15, 2019 16:35
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.

Switching editor takes priority over (un)fold button
3 participants