You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@steve.apache.org by hu...@apache.org on 2016/02/08 14:11:43 UTC

svn commit: r1729164 - /steve/trunk/pysteve/www/htdocs/js/steve_stv.js

Author: humbedooh
Date: Mon Feb  8 13:11:42 2016
New Revision: 1729164

URL: http://svn.apache.org/viewvc?rev=1729164&view=rev
Log:
trying to make tablets work

Modified:
    steve/trunk/pysteve/www/htdocs/js/steve_stv.js

Modified: steve/trunk/pysteve/www/htdocs/js/steve_stv.js
URL: http://svn.apache.org/viewvc/steve/trunk/pysteve/www/htdocs/js/steve_stv.js?rev=1729164&r1=1729163&r2=1729164&view=diff
==============================================================================
--- steve/trunk/pysteve/www/htdocs/js/steve_stv.js (original)
+++ steve/trunk/pysteve/www/htdocs/js/steve_stv.js Mon Feb  8 13:11:42 2016
@@ -666,7 +666,7 @@ function castVotesCallback(code, respons
 
 function touchHandler(event) {
     var touch = event.changedTouches[0];
-    if (!event.target || !event.target.getAttribute("data")) {
+    if (!touch.target || !touch.target.getAttribute("data")) {
         return
     }
     var simEvent = document.createEvent("MouseEvent");
@@ -677,7 +677,7 @@ function touchHandler(event) {
     }[event.type], true, true, window, 1,
         touch.screenX, touch.screenY,
         touch.clientX, touch.clientY, false,
-        false, false, false, 0, null);
+        false, false, false, 0, touch.target);
 
     touch.target.dispatchEvent(simEvent);
     event.preventDefault();