tyleryasaka/semantic-ui-range

touchstart and touchend event don't contain originalEvent property

piotr-gawron opened this issue · 0 comments

touchstart and touchend events passed via jQuery handlers don't contain originalEvent property anymore. This breaks external code that relies on the jQuery handlers. Here is the example code that shows the problem: https://codepen.io/piotr-gawron/pen/RJEGQG (try touching slider and document outside slider)

$(document).ready(function(){  
  // Semantic UI Range
  $('#range-1').range({
    min: 0,
    max: 10,
    start: 5
  });
 $(document).on('touchstart', function(e){
     alert("originalEvent exists: "+(e.originalEvent!==undefined))
 })
});

When touching the page not on the slider we will see originalEvent exists: true. However touching slider will end up in originalEvent exists: false.