piggz[m] | henk: should have stuck with sailfish :) | 10:09 |
---|---|---|
henk | piggz[m]: for a lot of reasons, I agree. but for some others, not so much, and they did weigh a lot /-: | 10:28 |
nephros_ | does anyone know how I can disable text selection in a WebView? I want to retain clicking and flicking but not selection. | 18:32 |
nephros_ | I have set canShowSelectionMarkers and chromeGestureEnabled to false but that doesn't do it. | 18:33 |
attah | The shoddy way would be to inject a css | 18:44 |
attah | Perhaps not terrible if it is a single-page thing? | 18:45 |
nephros_ | attah: what css magic are you thinking of? | 18:56 |
attah | https://www.w3schools.com/howto/howto_css_disable_text_selection.asp | 18:59 |
attah | And example of injecting html (close enough) https://github.com/attah/harbour-bbk/blob/master/qml/harbour-bbk.qml | 18:59 |
attah | maybe the webview of every app has some standard/implicit/... user-css too, but i don't know | 19:00 |
nephros_ | onTextSelectionActiveChanged: { clearSelection() } helps a bit. | 19:03 |
nephros_ | thanks, I shall try that! | 19:03 |
attah | I wouldn't bother if it is a multi-page thing, since it would have to be reinstalled on every page | 19:04 |
attah | (page-load) | 19:04 |
nephros_ | I 'own' the content and load it with loadHtml, and already add some css. So it's easier than with random web content. | 19:05 |
attah | good :) | 19:06 |
nephros_ | hmm it works - but it leads to a javascript error which causes the page to be unresponsive... | 19:11 |
nephros_ | error: chrome://embedlite/content/SelectionHandler.js, line 310: TypeError: this._cache.selection is ... | 19:12 |
attah | lol :) | 19:12 |
attah | if that reproduces somewhat minimally, it sounds like it is worth a bug report | 19:13 |
nephros_ | possibly yeah. have to test with latest first, right now I'm using SFOS 4.4. | 19:15 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!