<div dir="ltr">I'm not 100% sure about all of that. But you can easily turn most of that off with css, and javascript.<div><br></div><div>$('img').on('dragstart', function(event) { event.preventDefault(); });<br></div><div><br></div><div><div>body{</div><div> -webkit-touch-callout: none;</div><div> -webkit-user-select: none;</div><div> -khtml-user-select: none;</div><div> user-select: none;</div><div>}</div></div><div><br></div><div>Though I'm not sure how up to date WebKit 1 is with CSS3 but the image one would work.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 22, 2014 at 10:14 PM, Gavin Lambert <span dir="ltr"><<a href="mailto:gavinl@compacsort.com" target="_blank">gavinl@compacsort.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is it possible to make WebKit/GTK treat mouse events only in a very limited<br>
way?<br>
<br>
I have a kiosk-style application that displays a browser view full screen,<br>
using a bit of JavaScript to periodically update the display. It's<br>
currently using WebKit/GTK 1.8.1. (ie. WebKit1; I haven't migrated to<br>
WebKit2 because the multi-process model seems too much of a pain in the neck<br>
for this application.)<br>
<br>
Now I'm thinking about adding some interactivity via a touchscreen and some<br>
html <button>s or similar clickable elements.<br>
<br>
Is there a way to inhibit most of the "normal" mouse behaviour (dragging<br>
images, highlighting text, etc) and only react to button/link click events?<br>
<br>
<br>
One hacky idea that occurs to me (if WebKit doesn't have an option for this)<br>
is to not connect the touchscreen as a mouse but instead read the raw input<br>
internally and simulate only clicks and not drags. Not entirely sure how to<br>
go about doing that yet, which is partly why I'm hoping there's a simpler<br>
option.<br>
<br>
<br>
_______________________________________________<br>
webkit-gtk mailing list<br>
<a href="mailto:webkit-gtk@lists.webkit.org">webkit-gtk@lists.webkit.org</a><br>
<a href="https://lists.webkit.org/mailman/listinfo/webkit-gtk" target="_blank">https://lists.webkit.org/mailman/listinfo/webkit-gtk</a><br>
</blockquote></div><br></div>