<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks, after searching around a bit more I found the following, which seems to do the trick:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>     &lt;html onselectstart=&quot;return false&quot; ondragstart=&quot;return false&quot;&gt;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>          html { cursor: default; }<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>(Might change it to “cursor: none” later but it’s useful to be able to see where the click occurs for the moment.)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Much easier than I was dreading. </span><span style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Dub [mailto:dubcanada@gmail.com] <br><b>Sent:</b> Tuesday, 23 September 2014 13:53<br><b>To:</b> Gavin Lambert<br><b>Cc:</b> webkit-gtk@lists.webkit.org<br><b>Subject:</b> Re: [webkit-gtk] Kiosk-style mouse<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>I'm not 100% sure about all of that. But you can easily turn most of that off with css, and javascript.<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>$('img').on('dragstart', function(event) { event.preventDefault(); });<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><div><p class=MsoNormal>body{<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; -webkit-touch-callout: none;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; -webkit-user-select: none;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; -khtml-user-select: none;<o:p></o:p></p></div><div><p class=MsoNormal>&nbsp; &nbsp; user-select: none;<o:p></o:p></p></div><div><p class=MsoNormal>}<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Though I'm not sure how up to date WebKit 1 is with CSS3 but the image one would work.<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Mon, Sep 22, 2014 at 10:14 PM, Gavin Lambert &lt;<a href="mailto:gavinl@compacsort.com" target="_blank">gavinl@compacsort.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>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.&nbsp; It's<br>currently using WebKit/GTK 1.8.1.&nbsp; (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 &lt;button&gt;s or similar clickable elements.<br><br>Is there a way to inhibit most of the &quot;normal&quot; 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.&nbsp; 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><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></div></body></html>