self.newPoints[1].x - Uncaught TypeError: Cannot read property 'x' of undefined #2563
Description
Describe the bug
[2021-03-20 22:58:51] frontend.ERROR: Uncaught TypeError: Cannot read property 'x' of undefined {"file":"https://www.ogloszenia.jaslo4u.pl/asset/build/3024.666f1515.js","line":1,"column":49449,"url":"https://www.ogloszenia.jaslo4u.pl/l/456243/ferguson-255-ciagniki-i-maszyny-rolnicze-motoryzacja","userAgent":"Mozilla/5.0 (Linux; Android 10; SM-M115F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.86 Mobile Safari/537.36","platform":"Linux armv8l","customContext":"","stacktrace":"
https://www.ogloszenia.jaslo4u.pl/asset/build/3024.666f1515.js : l.onZoom : 1 : 49449
https://www.ogloszenia.jaslo4u.pl/asset/build/3024.666f1515.js : l.ontouchmove : 1 : 46331
https://www.ogloszenia.jaslo4u.pl/asset/build/9755.86e4e487.js : HTMLDocument.i : 2 : 89320
https://www.ogloszenia.jaslo4u.pl/asset/build/9755.86e4e487.js : HTMLDocument.dispatch : 2 : 43461
https://www.ogloszenia.jaslo4u.pl/asset/build/9755.86e4e487.js : HTMLDocument.v.handle : 2 : 41456"} []
which corresponds with https://github.com/fancyapps/fancybox/blob/master/dist/jquery.fancybox.js#L4321 in this project
To Reproduce
could not manually reproduce, error cached by fronted errors monitoring
as far as I can tell this error is due to not checking that property exist in array here, during touch zoom gesture:
self.newPoints[1].x
Expected behavior
executes without errors
Smartphone (please complete the following information):
- Device: SAMSUNG GALAXY S10+, SAMSUNG GALAXY M11, SM-M115F, HUAWEI Y5, REDMI 9
- OS: Android 11, Android 10, Android 8.1.0
- Browser Chrome
- Version 89.0.4389.86, 87.0.4280.101
generally multiple mobile devices with touch interface