Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scrolling on touchscreens #208

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
4ad6183
Switch to using `percentage` instead of `speed`
rohankapoorcom Apr 22, 2022
2dbf190
Set the iconRotateSpeed for fans that have no speed controls
rohankapoorcom Apr 23, 2022
8214cfe
Hardcode step to 1 if not a multispeed fan
rohankapoorcom Apr 24, 2022
1ebbd75
chore(deps): bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Jun 1, 2022
181743f
chore(deps): bump ansi-regex from 4.1.0 to 4.1.1
dependabot[bot] Jun 1, 2022
818c6ad
Merge pull request #3 from rohankapoorcom/rohankapoorcom-fix-fans
rohankapoorcom Jun 2, 2022
bcd48cf
Merge pull request #2 from custom-cards/dependabot/npm_and_yarn/ansi-…
rohankapoorcom Jun 2, 2022
b81a220
Merge pull request #1 from custom-cards/dependabot/npm_and_yarn/minim…
rohankapoorcom Jun 2, 2022
58a5fdb
Merge pull request #6 from rohankapoorcom/animate-speedless-fans-upst…
rohankapoorcom Jun 2, 2022
dfc8bf9
1.10.8
rohankapoorcom Jun 2, 2022
6a8d7da
Remove `domains` from hacs.json for HACS validation
rohankapoorcom Jun 2, 2022
67ab98a
1.10.9
rohankapoorcom Jun 2, 2022
0b0fd4c
Remove /dist/ directory and add to .gitignore
rohankapoorcom Jun 4, 2022
ec6747f
Remove rollup-plugin-uglify
rohankapoorcom Jun 5, 2022
2b19cae
Merge pull request #16 from rohankapoorcom/remove-rollup-plugin-uglify
rohankapoorcom Jun 5, 2022
0091c5e
Update README.md
Berserkir-Wolf Jul 12, 2022
1b7660b
Merge pull request #21 from Berserkir-Wolf/patch-1
rohankapoorcom Jul 13, 2022
9c61f2e
Merge pull request #15 from rohankapoorcom/gitignore-dist
rohankapoorcom Jul 13, 2022
d948653
chore(deps): bump terser from 4.8.0 to 4.8.1
dependabot[bot] Jul 22, 2022
fea85de
Merge pull request #25 from custom-cards/dependabot/npm_and_yarn/ters…
rohankapoorcom Jul 24, 2022
96c9787
fix: Scrolling on touch screens
Pajn Aug 13, 2022
ea909a3
fix: Handle pointercancel event
Pajn Aug 13, 2022
2301f5d
Merge remote-tracking branch 'upstream/main'
Pajn Aug 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/dist/
/node_modules/
/.rpt2_cache/
/.idea/
Expand Down
61 changes: 31 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Custom styles can be set by using [Card mod](https://github.com/thomasloven/love
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/general-minimal.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/general-minimal.png">
</td>
<td valign="top">

Expand Down Expand Up @@ -200,7 +200,7 @@ action_button:
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/general-compact.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/general-compact.png">
</td>
<td valign="top">

Expand All @@ -220,7 +220,7 @@ compact: true
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/icon-minimal.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/icon-minimal.png">
</td>
<td valign="top">

Expand All @@ -240,7 +240,7 @@ icon:
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/icon-icon-override.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/icon-icon-override.png">
</td>
<td valign="top">

Expand All @@ -264,7 +264,7 @@ icon:
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/action-minimal.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/action-minimal.png">
</td>
<td valign="top">

Expand All @@ -284,7 +284,7 @@ action_button:
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/action-custom.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/action-custom.png">
</td>
<td valign="top">

Expand All @@ -306,7 +306,7 @@ action_button:
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/action-custom-icon.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/action-custom-icon.png">
</td>
<td valign="top">

Expand Down Expand Up @@ -334,7 +334,7 @@ action_button:
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/slider-minimal.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/slider-minimal.png">
</td>
<td valign="top">

Expand All @@ -354,7 +354,7 @@ slider:
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/slider-state-color.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/slider-state-color.png">
</td>
<td valign="top">

Expand All @@ -375,7 +375,7 @@ slider:
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/slider-show-track.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/slider-show-track.png">
</td>
<td valign="top">

Expand All @@ -397,7 +397,7 @@ slider:
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/slider-force-square.png">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/slider-force-square.png">
</td>
<td valign="top">

Expand Down Expand Up @@ -425,7 +425,7 @@ For fan entities the icon auto rotates based on the speed of the fan.
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/fan.gif">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/fan.gif">
</td>
<td valign="top">

Expand Down Expand Up @@ -458,7 +458,7 @@ name: Fan
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/switch.gif">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/switch.gif">
</td>
<td valign="top">

Expand Down Expand Up @@ -492,7 +492,7 @@ For most use cases: set `slider.direction: top-bottom` and `slider.background: s
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/cover.gif">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/cover.gif">
</td>
<td valign="top">

Expand Down Expand Up @@ -527,7 +527,7 @@ In this example the action button is used to toggle play/pause.
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/media.gif">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/media.gif">
</td>
<td valign="top">

Expand Down Expand Up @@ -565,7 +565,7 @@ Default behavior: slider is used to set target temperature, it doesn't alter sta
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/climate.gif">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/climate.gif">
</td>
<td valign="top">

Expand Down Expand Up @@ -599,7 +599,7 @@ Default behavior: `slider.toggle_on_click: true`
</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/examples/lock.gif">
<td><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/examples/lock.gif">
</td>
<td valign="top">

Expand Down Expand Up @@ -631,7 +631,7 @@ name: Lock
</td>
</tr>
<tr>
<td valign="top"><img src="https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/preview.gif">
<td valign="top"><img src="https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/preview.gif">
</td>
<td valign="top">

Expand Down Expand Up @@ -709,7 +709,7 @@ Mixed `group` entities are not supported, if you want to control multiple
- media players use [Media player group](https://www.home-assistant.io/integrations/media_player.group/)

## Known issues
When you discover any bugs please open an [issue](https://github.com/mattieha/slider-button-card/issues).
When you discover any bugs please open an [issue](https://github.com/custom-cards/slider-button-card/issues).

## Languages

Expand All @@ -727,20 +727,21 @@ This card supports translations. Please, help to add more translations and impro
- [_Your language?_][add-translation]

## Credits
- Inspired by [Slider entity row](https://github.com/thomasloven/lovelace-slider-entity-row)
- Originally inspired by [Slider entity row](https://github.com/thomasloven/lovelace-slider-entity-row)
- Forked from [Slider button card](https://github.com/mattieha/slider-button-card/) by [@mattieha](https://www.github.com/mattieha)

---
[![beer](https://www.buymeacoffee.com/assets/img/custom_images/black_img.png)](https://www.buymeacoffee.com/mattijsha)

<!-- References -->
[hacs]: https://hacs.xyz
[add-translation]: https://github.com/mattieha/slider-button-card/blob/main/CONTRIBUTE.md#adding-a-new-translation
[visual-editor]: https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/card-editor.png
[preview]: https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/preview.gif
[preview-2]: https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/preview-2.gif
[grid]: https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/grid-not-square.png
[full-width]: https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/grid-full-width.png
[latest-release]: https://github.com/mattieha/slider-button-card/releases/latest
[releases-shield]: https://img.shields.io/github/release/mattieha/slider-button-card.svg?style=for-the-badge
[releases]: https://github.com/mattieha/slider-button-card/releases
[icon-minimal]: https://raw.githubusercontent.com/mattieha/slider-button-card/main/assets/grid-full-width.png
[add-translation]: https://github.com/custom-cards/slider-button-card/blob/main/CONTRIBUTE.md#adding-a-new-translation
[visual-editor]: https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/card-editor.png
[preview]: https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/preview.gif
[preview-2]: https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/preview-2.gif
[grid]: https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/grid-not-square.png
[full-width]: https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/grid-full-width.png
[latest-release]: https://github.com/custom-cards/slider-button-card/releases/latest
[releases-shield]: https://img.shields.io/github/release/custom-cards/slider-button-card.svg?style=for-the-badge
[releases]: https://github.com/custom-cards/slider-button-card/releases
[icon-minimal]: https://raw.githubusercontent.com/custom-cards/slider-button-card/main/assets/grid-full-width.png
Loading