Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

touchstart and touchend event don't contain originalEvent property #31

Open
piotr-gawron opened this issue Jun 29, 2018 · 0 comments
Open

Comments

@piotr-gawron
Copy link

piotr-gawron commented Jun 29, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant