<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Implement touch event emulation in the view layer"
   href="https://bugs.webkit.org/show_bug.cgi?id=159751">159751</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK] Implement touch event emulation in the view layer
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Local Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andrunko&#64;gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>While working on kinetic scrolling (<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Add kinetic scrolling"
   href="show_bug.cgi?id=155750">bug #155750</a>) I noticed that webkit doesnt have support for touch emulation on the view layer. Touch emulation is only supported in the WebCore layer (<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Implement touch event emulation in the WebCore layer"
   href="show_bug.cgi?id=77105">bug #77105</a>), but the events there are not propagated to the view (only to the page), meaning testing things like kinetic scrolling (which requires touch events) wouldnt work without a real touchscreen device.

As I didnt have a touchscreen device available, I decided to add a basic support (single touch) for emulation on the view, by sending synthetic touch events when receiving mouse events. The impl uses the GTK_TEST_TOUCHSCREEN env variable to decide whether to enable emulation (as already done by other official GTK+ widgets).

While I believe this wont get integrated, I wanted to leave it here in case someone needs something similar in the future.

Patch to come.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>