+ 6

How can I deactivate the 'Copy Paste' pop-up when I long press a button or image?

When hold this button in for a few seconds a 'Copy Paste' pop-up appears. How can I prevent this from happening? Is there a setting on my device that must be changed or is there something I must add to my code? (I am using a tablet with Android 6). https://code.sololearn.com/WsQW9M7hVpTk/?ref=app

2nd Sep 2018, 6:50 AM
Ryan Els
Ryan Els - avatar
2 Answers
+ 2
button { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
2nd Sep 2018, 7:11 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Thanks Calvin 👌 It works like a charm.
2nd Sep 2018, 7:17 AM
Ryan Els
Ryan Els - avatar