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

how can I disable selection #50

Open
sivaprasad3175 opened this issue Feb 19, 2020 · 7 comments
Open

how can I disable selection #50

sivaprasad3175 opened this issue Feb 19, 2020 · 7 comments

Comments

@sivaprasad3175
Copy link

Long Press on chartview it is getting selected as shown

WhatsApp Image 2020-02-19 at 5 57 02 PM

@sebastianbochan
Copy link
Contributor

Hi @sivaprasad3175,
You can edit the highcharts-layout/index.html file and add

    <style>
    	* {
		    -webkit-touch-callout: none;
		    -webkit-user-select: none; /* Disable selection/copy in UIWebView */
			-khtml-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
			user-select: none;
		}
   	</style>

Im not sure if it should be added by default, because in some cases users need to copy/paste some elements (like title etc).

Im not closing the ticket and wait for feedback from other users.

@sivaprasad3175
Copy link
Author

sivaprasad3175 commented Mar 16, 2020

still same issue
not working
any alternative solution

@sebastianbochan
Copy link
Contributor

Are you able to share your simplified app to debug the problem? Does the problem appear in android or ios?

@sivaprasad3175
Copy link
Author

both

@sebastianbochan
Copy link
Contributor

Please share your simplified demo, without that Im not able to reproduce the problem.

@zjhiphop
Copy link

@sebastianbochan I also have this issue. I think you can try any chart inside iOS, and then try to move your fingers over the chart. Then you will see a black overlap on the chart, which only happens when user try to select text.

The solution should be either give a config for injecting a script, which we can control by ourselves, or please add disabled style to layout html by default.

@sebastianbochan
Copy link
Contributor

I disabled styles in the newest 3.0 version.

Please let me know if it worked in your scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants