Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20756

Touch events for BrowserSim are not set properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.4.0.Alpha1
    • 4.3.0.CR1
    • browsersim
    • None
    • Workaround Exists
    • Hide

      Switch to JavaFx mode

      Show
      Switch to JavaFx mode

      1. Create HTML page with this content:

      <!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>
      

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

      ERROR:

      !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 
      

            kmarmaliykov Konstantin Marmalyukov (Inactive)
            vpakan Vlado Pakan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: