Skip to content

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.

2 participants