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:
parent
38efb11f68
commit
24e6e12924
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user