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 for Click-to-Copy #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

swainn
Copy link

@swainn swainn commented Sep 4, 2020

This is a fix for #8. This pull request:

  • Modifies the click-to-copy functionality to only copy when the click occurs over the click-to-copy button.
  • This allows users to selectively copy from the code block if they would like or copy the entire block by pressing the click-to-copy button.
  • This is done by comparing the event offsets to see if the coordinates fall with in the approximate area of the button.

…occurs over the click-to-copy button.

This allows users to selectively copy from the code block if they would like or copy the entire block by pressing the click-to-copy button.
@maicodelphi
Copy link

Thats a great improvement.
@myyasuda could you merge this please?

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