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

Onclick breaks page #141

Closed
MatsSvensson opened this issue Jul 21, 2016 · 2 comments
Closed

Onclick breaks page #141

MatsSvensson opened this issue Jul 21, 2016 · 2 comments

Comments

@MatsSvensson
Copy link

MatsSvensson commented Jul 21, 2016

On http://gethead.info
...there seems to be some script that prevents you from selecting text to copy or search etc.

For example, highlighting a word or piece of text inside the code-parts of the page immediately changes the selection to instead select ALL of the surrounding code.

This makes it impossible to, for example, copy a piece of the text, or to use any right-click features of the browser, like searching for a highlighted word.

I'm guessing this is meant to be helpful, but it really screws the user.
Please don't mess with core functionality in the browser this way.

( I have tested in several common browsers, with no extra add-ons)


Correction:
Seems like its mouse-up that triggers it, not on-click.
I can select a couple of letters, but when i let go of the mouse button, the selection is altered.

@mikestreety
Copy link

I can verify this:

lzhqvwrih7

@joshbuchea
Copy link
Owner

Yeah I thought I was being clever when I implemented this feature. Turns out it creates more issues than it solves. Awesome animated gif example @mikestreety! I'll go ahead and remove the JavaScript snippet that adds this functionality. Thanks everyone!

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

No branches or pull requests

3 participants