Skip to content

Commit

Permalink
feat: add Mushroom slider to swipe exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanna_37 committed Jun 10, 2022
1 parent 532ddbd commit 9136076
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions swipe-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let config = {};

/**
* Ignore swipes when initiated on these elements.
*
*
* Notes:
* - tagname must always be lowercase
* - if more criteria are present (e.g. tagname and classes), they must all match
Expand Down Expand Up @@ -36,6 +36,9 @@ const exceptions = [
tagname: "g",
cssClassList: ["draglayer"]
},
{ // 🍄 Mushroom (https://github.com/piitaya/lovelace-mushroom)
tagname: "mushroom-slider"
},
{ // round-slider (https://github.com/thomasloven/round-slider)
tagname: "round-slider",
},
Expand Down Expand Up @@ -113,7 +116,7 @@ function swipeNavigation() {
/**
* Indicates whether the current swipe should be ignored as it is checked against
* exceptions.
*
*
* When `false` it indicates that the current exception's criteria does not match with the
* element, so we can avoid to check further criteria, and we can move to look at the next
* exception.
Expand Down

0 comments on commit 9136076

Please sign in to comment.