From 24e6e12924e7237a74ee43729817eafc297a009b Mon Sep 17 00:00:00 2001 From: Ghislain Rodrigues Date: Wed, 15 Jul 2015 14:02:36 +0100 Subject: [PATCH] In IE11, clicking on a slider triggered an event which had no pageX/Y, but they were in the originalEvent attribute --- jqColorPicker.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jqColorPicker.js b/jqColorPicker.js index 0654e30..e6a8300 100644 --- a/jqColorPicker.js +++ b/jqColorPicker.js @@ -57,8 +57,10 @@ } function resolveEventType(event) { - return event.originalEvent.touches ? + event = event.originalEvent.touches ? event.originalEvent.touches[0] : event; + + return event.originalEvent ? event.originalEvent : event; } function findElement($elm) {