2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-07-02 23:54:29 -06:00

In IE11, clicking on a slider triggered an event which had no pageX/Y, but they were in the originalEvent attribute

This commit is contained in:
Ghislain Rodrigues 2015-07-15 14:02:36 +01:00
parent 38efb11f68
commit 24e6e12924

View File

@ -57,8 +57,10 @@
} }
function resolveEventType(event) { function resolveEventType(event) {
return event.originalEvent.touches ? event = event.originalEvent.touches ?
event.originalEvent.touches[0] : event; event.originalEvent.touches[0] : event;
return event.originalEvent ? event.originalEvent : event;
} }
function findElement($elm) { function findElement($elm) {