From bc8766fec40cac344fd6636a4582987d32b57daf Mon Sep 17 00:00:00 2001 From: simeydotme Date: Thu, 7 Jan 2021 19:09:52 +0800 Subject: [PATCH] bump version and build --- dist/svelte-range-slider-pips.js | 12 ++++++------ dist/svelte-range-slider-pips.mjs | 12 ++++++------ package.json | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/svelte-range-slider-pips.js b/dist/svelte-range-slider-pips.js index e3abb4c..8006d7c 100644 --- a/dist/svelte-range-slider-pips.js +++ b/dist/svelte-range-slider-pips.js @@ -1,7 +1,7 @@ /** - * svelte-range-slider-pips ~ 1.5.2 + * svelte-range-slider-pips ~ 1.5.3 * Multi-Thumb, Accessible, Beautiful Range Slider with Pips - * © MPL-2.0 ~ Simon Goellner ~ 29/12/2020 + * © MPL-2.0 ~ Simon Goellner ~ 7/1/2021 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : @@ -1662,11 +1662,11 @@ let hVal = 0; if (vertical) { - hPos = clientPos.y - dims.top; + hPos = clientPos.clientY - dims.top; hPercent = hPos / dims.height * 100; hVal = (max - min) / 100 * hPercent + min; } else { - hPos = clientPos.x - dims.left; + hPos = clientPos.clientX - dims.left; hPercent = hPos / dims.width * 100; hVal = (max - min) / 100 * hPercent + min; } @@ -1710,11 +1710,11 @@ let hVal = 0; if (vertical) { - hPos = clientPos.y - dims.top; + hPos = clientPos.clientY - dims.top; hPercent = hPos / dims.height * 100; hVal = (max - min) / 100 * hPercent + min; } else { - hPos = clientPos.x - dims.left; + hPos = clientPos.clientX - dims.left; hPercent = hPos / dims.width * 100; hVal = (max - min) / 100 * hPercent + min; } diff --git a/dist/svelte-range-slider-pips.mjs b/dist/svelte-range-slider-pips.mjs index b21b231..0ef4968 100644 --- a/dist/svelte-range-slider-pips.mjs +++ b/dist/svelte-range-slider-pips.mjs @@ -1,7 +1,7 @@ /** - * svelte-range-slider-pips ~ 1.5.2 + * svelte-range-slider-pips ~ 1.5.3 * Multi-Thumb, Accessible, Beautiful Range Slider with Pips - * © MPL-2.0 ~ Simon Goellner ~ 29/12/2020 + * © MPL-2.0 ~ Simon Goellner ~ 7/1/2021 */ function noop() { } function run(fn) { @@ -1656,11 +1656,11 @@ function instance$1($$self, $$props, $$invalidate) { let hVal = 0; if (vertical) { - hPos = clientPos.y - dims.top; + hPos = clientPos.clientY - dims.top; hPercent = hPos / dims.height * 100; hVal = (max - min) / 100 * hPercent + min; } else { - hPos = clientPos.x - dims.left; + hPos = clientPos.clientX - dims.left; hPercent = hPos / dims.width * 100; hVal = (max - min) / 100 * hPercent + min; } @@ -1704,11 +1704,11 @@ function instance$1($$self, $$props, $$invalidate) { let hVal = 0; if (vertical) { - hPos = clientPos.y - dims.top; + hPos = clientPos.clientY - dims.top; hPercent = hPos / dims.height * 100; hVal = (max - min) / 100 * hPercent + min; } else { - hPos = clientPos.x - dims.left; + hPos = clientPos.clientX - dims.left; hPercent = hPos / dims.width * 100; hVal = (max - min) / 100 * hPercent + min; } diff --git a/package.json b/package.json index 391643f..b06beb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svelte-range-slider-pips", - "version": "1.5.2", + "version": "1.5.3", "svelte": "src/index.js", "module": "dist/svelte-range-slider-pips.mjs", "main": "dist/svelte-range-slider-pips.js",