Skip to content

Commit

Permalink
fix: disable double-tap to zoom on btn's for mobile
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Bassett <[email protected]>
  • Loading branch information
cadriel committed Jun 30, 2021
1 parent df664d3 commit 5f0d572
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/scss/misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
background: transparent;
}

// Ensure the number arrows don't appear on text inputs.
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
Expand All @@ -46,3 +47,8 @@ input::-webkit-inner-spin-button {
input[type=number] {
-moz-appearance: textfield;
}

// Disable double-tap zoom effects on buttons.
.v-btn {
touch-action: manipulation;
}

1 comment on commit 5f0d572

@onfoot
Copy link

@onfoot onfoot commented on 5f0d572 Jul 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the best commit ever. Just putting it out there.

Please sign in to comment.