-
Notifications
You must be signed in to change notification settings - Fork 866
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
Uncaught TypeError: Cannot read property 'x' of undefined #55
Comments
I have the same issue. |
Same here too |
Please provide a demo showing this issue. Either by Codepen, jsfiddle, anything really.. :) |
https://gyazo.com/16e39433f8684cf0bf75bad42207f70e |
@vrockcm thanks but please read my previous reply. Thanks! |
I tried to do it in jsfiddle but the error didn't pop up. Ill try codepen and see what happens tomorrow. 🙂 |
https://codepen.io/anon/pen/oJoMRJ |
I can't replicate the issue intentionally, but yes the issue happens to me. The error prevents the element that caused the tilt issue to no longer tilt. I even managed to somehow replicate the issue in the above codepen. |
Any updates on the issue? I get the same error |
Well, I just disabled the X-axis. Tbh the change in effect isn't even much noticeable.
|
No update into this? This bug still happens in JUL/2019! |
I fix it by this way I hope it works |
This error appears if you didn't moving a mouse over a tilt element before, and you are scrolling a page and cursor is over the tilt element, and then leaves it, without moving of mouse. In this case the tilt effect doesn't work only on this element |
Go to your file src/tilt.jquery.js if(this.mousePositions){
|
I get the same issue, when scrolling, if the mouse ends up over an element, it triggers an error blocking the script from re-running on that element even when the mouse starts moving again. |
thank you so much, that solves this small issue! |
Where should i put this code? |
I have the same issue :( |
@diabysidim thank you. Your solution is worked for me. |
Put the whole block in a try/catch:
|
No description provided.
The text was updated successfully, but these errors were encountered: