From 840623b606889e036860c16d79b5486c40838e59 Mon Sep 17 00:00:00 2001 From: Titouan Mathis Date: Tue, 13 Sep 2022 22:16:53 +0200 Subject: [PATCH 1/3] Fix a bug where sliders would jump on touch devices --- packages/ui/molecules/Slider/Slider.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ui/molecules/Slider/Slider.js b/packages/ui/molecules/Slider/Slider.js index aa8c4725..f7daade7 100644 --- a/packages/ui/molecules/Slider/Slider.js +++ b/packages/ui/molecules/Slider/Slider.js @@ -351,6 +351,7 @@ export default class Slider extends Base { */ onSliderDragStart() { this.__initialX = this.currentSliderItem ? this.currentSliderItem.x : 0; + this.__distanceX = this.__initialX; } /** From 3286fb28b65dc9f1e74d64d9834adb55abaae1a3 Mon Sep 17 00:00:00 2001 From: Titouan Mathis Date: Wed, 14 Sep 2022 08:35:55 +0200 Subject: [PATCH 2/3] Fix demo --- packages/docs/components/molecules/Slider/stories/app.twig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/docs/components/molecules/Slider/stories/app.twig b/packages/docs/components/molecules/Slider/stories/app.twig index 385a1def..95d84e6d 100644 --- a/packages/docs/components/molecules/Slider/stories/app.twig +++ b/packages/docs/components/molecules/Slider/stories/app.twig @@ -5,6 +5,10 @@ .is-active { box-shadow: 0 0 0 3px var(--vp-c-brand); } + + html { + overflow: hidden; + }
Date: Wed, 14 Sep 2022 08:45:27 +0200 Subject: [PATCH 3/3] Bump version number --- composer.json | 2 +- package-lock.json | 10 +++++----- package.json | 2 +- packages/docs/package.json | 2 +- packages/tests/package.json | 2 +- packages/ui/package.json | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index d913ce96..4513ccc4 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "studiometa/ui", - "version": "0.2.12", + "version": "0.2.13", "description": "A set of opiniated, unstyled and accessible components.", "license": "MIT", "require": { diff --git a/package-lock.json b/package-lock.json index dfbd93e3..ece2c421 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@studiometa/ui-workspace", - "version": "0.2.12", + "version": "0.2.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@studiometa/ui-workspace", - "version": "0.2.12", + "version": "0.2.13", "workspaces": [ "packages/*" ], @@ -10010,7 +10010,7 @@ }, "packages/docs": { "name": "@studiometa/ui-docs", - "version": "0.2.11", + "version": "0.2.13", "dependencies": { "@bytebase/vue-kbar": "^0.1.7", "@studiometa/js-toolkit": "^2.4.1" @@ -10128,7 +10128,7 @@ }, "packages/tests": { "name": "@studiometa/ui-tests", - "version": "0.2.11", + "version": "0.2.13", "license": "MIT", "dependencies": { "@jest/globals": "^27.3.1", @@ -10143,7 +10143,7 @@ }, "packages/ui": { "name": "@studiometa/ui", - "version": "0.2.11", + "version": "0.2.13", "license": "MIT", "dependencies": { "@studiometa/js-toolkit": "^2.4.1", diff --git a/package.json b/package.json index 8112d46a..74045df9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/ui-workspace", - "version": "0.2.12", + "version": "0.2.13", "private": true, "workspaces": [ "packages/*" diff --git a/packages/docs/package.json b/packages/docs/package.json index 6d820d63..64e4bedc 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/ui-docs", - "version": "0.2.12", + "version": "0.2.13", "private": true, "type": "module", "scripts": { diff --git a/packages/tests/package.json b/packages/tests/package.json index 25931bf9..d1ae0e09 100644 --- a/packages/tests/package.json +++ b/packages/tests/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/ui-tests", - "version": "0.2.12", + "version": "0.2.13", "private": true, "type": "module", "scripts": { diff --git a/packages/ui/package.json b/packages/ui/package.json index b9e92e8d..e52dc808 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@studiometa/ui", - "version": "0.2.12", + "version": "0.2.13", "description": "A set of opiniated, unstyled and accessible components", "publishConfig": { "access": "public"