Skip to content

Commit

Permalink
fix: include touch-action rule for draggable content
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook Johnson committed May 12, 2021
1 parent 3f507e6 commit 53221da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/color-slider/src/color-slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ governing permissions and limitations under the License.
--sp-color-slider-gradient-fallback: rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%,
rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%,
rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%;

touch-action: none;
}

:host(:not([vertical])) {
Expand Down
4 changes: 2 additions & 2 deletions packages/slider/src/slider.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ governing permissions and limitations under the License.
outline-width: 0;
}

:host {
touch-action: pan-y;
.track {
touch-action: none;
}

.not-exact.ticks {
Expand Down

0 comments on commit 53221da

Please sign in to comment.