thdoan / magnify

A lightweight jQuery magnifying glass zoom plugin.
https://thdoan.github.io/magnify/
MIT License
243 stars 63 forks source link

Strange issue #56

Open fridzema opened 5 years ago

fridzema commented 5 years ago

Hello,

I am using your package for over a year now and everything works perfect! But the things i just started with capturing client js errors in Sentry.

Now i get almost every hour the following errors:

TypeError
Unable to get property '0' of undefined or null reference

"magnifying").trigger("magnifyend")})},k=function(t){if(p){if(t?(t.preventDefault(),nPosX=t.pageX||t.originalEvent.touches[0].pageX,nPosY=t.
TypeError
undefined is not an object (evaluating 't.originalEvent.touches[0]')

?(t.preventDefault(),nPosX=t.pageX||t.originalEvent.touches[0].pageX,nPosY=t.pageY||t.originalEvent.touches[0].pageY,o.data("lastPos",{x:nPo

Do you have any idea where to look?

Tried in every modern browser but can't replicate it :(

thdoan commented 5 years ago

@fridzema , I don't have Sentry so cannot reproduce these errors. Can you try to reproduce them outside of Sentry?

sanjay-makwana-avidbrio commented 3 years ago

@fridzema I think you passing the wrong data attributes check Documetns else can you share the code here.