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:25:17 UTC
svn commit: r1729169 - /steve/trunk/pysteve/www/htdocs/js/steve_stv.js
Author: humbedooh
Date: Mon Feb 8 13:25:17 2016
New Revision: 1729169
URL: http://svn.apache.org/viewvc?rev=1729169&view=rev
Log:
try to fetch the right touch event??
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=1729169&r1=1729168&r2=1729169&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:25:17 2016
@@ -666,8 +666,14 @@ function castVotesCallback(code, respons
function touchHandler(event) {
var touch = event.changedTouches[0];
+ for (var i in event.changedTouches) {
+ if (event.changedTouches[i].target && event.changedTouches[i].target.getAttribute ) {
+ touch = event.changedTouches[i]
+ break
+ }
+ }
if (!touch.target || !touch.target.getAttribute || !touch.target.getAttribute("data")) {
- //return
+ return
}
var simEvent = document.createEvent("MouseEvent");
simEvent.initMouseEvent({