[jbosstools-issues] [JBoss JIRA] (JBIDE-21178) [CLONE]Touch events for BrowserSim are not set properly

Konstantin Marmalyukov (JIRA) issues at jboss.org
Thu Dec 3 09:55:00 EST 2015


Konstantin Marmalyukov created JBIDE-21178:
----------------------------------------------

             Summary: [CLONE]Touch events for BrowserSim are not set properly
                 Key: JBIDE-21178
                 URL: https://issues.jboss.org/browse/JBIDE-21178
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: browsersim
    Affects Versions: 4.3.0.CR1
         Environment: JBDS 9.0.0.CR1-v20150918-0257-B105 Fedora 22 KDE 64bit
            Reporter: Vlado Pakan
            Assignee: Konstantin Marmalyukov
             Fix For: 4.3.1.Beta1, 4.4.0.Alpha1


1. Create HTML page with this content:
{code:html}
<!DOCTYPE html>
<html>
<head>
<title>sample</title>
<script type="text/javascript"> 
      function window_onload() {
    	  document.getElementById('touchable').addEventListener('touchstart', function(ev) {     
        	  alert('touchstart')}, false);
    	  document.getElementById('touchable').addEventListener('touchend', function(ev) {     
              alert('touchend')}, false);
    	  document.getElementById('touchable').addEventListener('touchmove', function(ev) {     
              alert('touchmove')}, false);
      }
      </script>
</head>
<body onload='window_onload();'>
	<div id='touchable'>This element is touchable.</div>
</body>
</html>
{code}

2. Open this page in BrowserSim
3. Enable touch events for BrowserSim
4. Click somewhere within the page in BrowserSim

ERROR:
{noformat}
!JavaScript WARN: Converting `ontouchstart` property to event listener. 
!JavaScript ERROR: TypeError: Unable to delete property. on line 118 for file:///.../jboss-touchevents/src/main/webapp/index.html 
!JavaScript WARN: Converting `ontouchend` property to event listener. 
!JavaScript ERROR: TypeError: Unable to delete property. on line 118 for file:///.../jboss-touchevents/src/main/webapp/index.html 
{noformat}




--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list