Prevent marking in WebView
-
wrote on 2 Oct 2015, 13:36 last edited by McLion 10 Feb 2015, 14:08
Hi
Is there a way to prevent marking/selection in a WebView?
I mean, if the mouse/touch is pressed and hold and then moved it should not mark things moved over until released.Thanks
McL -
wrote on 5 Oct 2015, 10:00 last edited by
Hmmm, no response ... does that mean that this not possible ?!?
-
Hi
Is there a way to prevent marking/selection in a WebView?
I mean, if the mouse/touch is pressed and hold and then moved it should not mark things moved over until released.Thanks
McLwrote on 20 Nov 2015, 06:41 last edited by@McLion This is best handled in the jQuery. It sounds like on certain elements you want to prevent the selection event from occurring.
http://stackoverflow.com/search?q=jquery+prevent+text+selection
So, create a class, and then capture the select event on that class, then deny it with e.preventDefault() followed by return false. I'm not certain, but this might involve dragstart and dragend events, as well.