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

Internet Explorer 10+ throws errors when moving mouse #43

Closed
johnbacon opened this issue Mar 20, 2015 · 2 comments
Closed

Internet Explorer 10+ throws errors when moving mouse #43

johnbacon opened this issue Mar 20, 2015 · 2 comments
Labels
Milestone

Comments

@johnbacon
Copy link
Contributor

On the Slideout demo page, moving the mouse in IE10+ throws the following error over and over again:

SCRIPT5007: Unable to get property '0' of undefined or null reference 
slideout, line 186 character 3494 

and highlights the following minified JavaScript as the culprit:

var n=t.touches[0].clientX-e._startOffsetX;

It appears line 193 of the unminified slideout.js is the issue:

var dif_x = eve.touches[0].clientX - self._startOffsetX;
@pazguille pazguille added the bug label Mar 20, 2015
@johnbacon
Copy link
Contributor Author

This can be "fixed" by checking for the presence of eve.touches where it is referenced. For instance:

if (typeof eve.touches === 'undefined') { return; }

Though I'm sure there's a better way.

johnbacon added a commit to johnbacon/slideout that referenced this issue Apr 3, 2015
pazguille added a commit that referenced this issue Apr 6, 2015
#43 suppresses Internet Explorer errors.
@pazguille
Copy link
Member

#50

@pazguille pazguille added this to the 0.1.6 milestone Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants