You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use your other plugin "jquery.event.swipe.js" and find velocityX/Y return "NaN".
Digging more, I come inside "jquery.event.move.js" and find when "updateEvent" is call, "timeStamp" is undefined and has side effect to false all calculation after about velocity.
Digging again, I was trying to solve this adding "timeStamp" on "event" (inside "movestart" function) but browser throw a "TypeError: setting getter-only property "timeStamp" (which is not a surprise).
In desperation, I corrected by setting a new parameter to "updateEvent" : function updateEvent(event, touch, timeStamp, eTimeStamp) {
and for the call : updateEvent(event, data.touch, data.timeStamp, e.timeStamp);
I'm sure this is not the best solution but at least it does the job ^^
The text was updated successfully, but these errors were encountered:
I was trying to use your other plugin "jquery.event.swipe.js" and find velocityX/Y return "NaN".
Digging more, I come inside "jquery.event.move.js" and find when "updateEvent" is call, "timeStamp" is undefined and has side effect to false all calculation after about velocity.
Digging again, I was trying to solve this adding "timeStamp" on "event" (inside "movestart" function) but browser throw a "TypeError: setting getter-only property "timeStamp" (which is not a surprise).
In desperation, I corrected by setting a new parameter to "updateEvent" :
function updateEvent(event, touch, timeStamp, eTimeStamp) {
and for the call :
updateEvent(event, data.touch, data.timeStamp, e.timeStamp);
I'm sure this is not the best solution but at least it does the job ^^
The text was updated successfully, but these errors were encountered: