title: touch events in node webkit ( nw )
body: <p>I realize there are already a couple posts on this ( but neither <a href="https://stackoverflow.com/questions/22916627/enable-touch-events-in-node-webkit">this one</a> or <a href="https://stackoverflow.com/questions/23491908/node-webkit-enabling-flag-touch-screen">this one</a> have been answered ) so I'd like to ask/articulate the issue here.</p>
  
  <p>I'm developing a node webkit application ( "nw": "^0.12.3" ) and having issues enabling touch events. The following code works in Chrome/Chromium but not in node webkit:</p>
  
  <pre><code>document.body.addEventListener('touchstart', function(e){
      alert(e.changedTouches[0].pageX);
  }, false);
  </code></pre>
  
  <p>i've enabled specific flags in nw before by adding "chromium-args" to my package.json ( <a href="http://peter.sh/experiments/chromium-command-line-switches/" rel="nofollow noreferrer">using this reference</a> ), I've tried doing the same in this instance ( see below ) but nothing seems to work...</p>
  
  <pre><code>"window": {
      "toolbar": true,
      "frame": true,
      "icon": "icon.png",
      "show_in_taskbar": false,
      "chromium-args" : {
          "--enable-touch-events" : true,
          "--enable-pinch" : true,
          "--enable-touch-drag-drop" : true,
          "--touch-events" : true,
          "--enable-touch-drag-drop" : true,
          "--ash-touch-hud" : true
      }
  }
  </code></pre>
  
  <p>also ( for what it's worth ) </p>
  
  <pre><code>var nw = require('nw.gui');
  nw.Screen.Init();
  nw.Screen.screens[0].touchSupport; // returns 0
  //...even though the monitor is a touchscreen ( Dell XPS )
  </code></pre>