Skip to content

Commit

Permalink
fix: sliders on click (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrantisekMichalSebestyen committed May 12, 2023
1 parent 456b208 commit 8edaa0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion resources/js/components/catalog-new/NewColorSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
:dotSize="24"
:height="12"
:process="false"
:railStyle="{'background': 'linear-gradient(to right, #d82626 0%, #d8d826 17%, #26d826 33%, #26d8d8 50%, #2626d8 67%, #d826d8 83%, #d82626 100%)'}"
:railStyle="{
background:
'linear-gradient(to right, #d82626 0%, #d8d826 17%, #26d826 33%, #26d8d8 50%, #2626d8 67%, #d826d8 83%, #d82626 100%)',
}"
lazy
class="tw-cursor-pointer"
@update:model-value="hueChange"
@dragging="hueChange"
@change="$emit('change', color)"
>
Expand Down Expand Up @@ -43,6 +47,7 @@
:railStyle="lightnessBgColor()"
lazy
class="tw-cursor-pointer tw-mt-3"
@update:model-value="lightnessChange"
@dragging="lightnessChange"
@change="$emit('change', color)"
>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/catalog-new/NewYearSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:duration="0"
:dotSize="24"
:height="2"
lazy
@update:model-value="value = { from: $event[0], to: $event[1] }"
@drag-end="$emit('change', value)"
@dragging="value = { from: $event[0], to: $event[1] }"
class="tw-cursor-pointer"
Expand Down

0 comments on commit 8edaa0c

Please sign in to comment.