angular-slider icon indicating copy to clipboard operation
angular-slider copied to clipboard

Script crashes if clientX === 0 without touch screen

Open perqa opened this issue 12 years ago • 0 comments

On row 262: eventX = event.clientX || event.touches[0].clientX;

When event.clientX === 0, it is considered false, and event.touches[0] are used instead. However, on a desktop, event.touches don't exist, so the script crashes with the message: "Uncaught TypeError: Cannot read property '0' of undefined".

perqa avatar Dec 03 '13 11:12 perqa