Skip to content

Commit

Permalink
feat(touchaction): remove 300ms delay via touch-action
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Mar 4, 2016
1 parent 62c880f commit e1c77a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ionic/components/app/normalize.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ input[type="submit"] {
cursor: pointer; // 3
}

// remove 300ms delay
a,
button,
[tappable],
input,
textarea {
-ms-touch-action: manipulation;
touch-action: manipulation;
}

button {
border: 0;
line-height: 1;
Expand Down
2 changes: 2 additions & 0 deletions ionic/components/app/structure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ body {
padding: 0;
word-wrap: break-word;

-ms-touch-action: manipulation;
touch-action: manipulation;

-webkit-user-drag: none;
-ms-content-zooming: none;

Expand Down

0 comments on commit e1c77a3

Please sign in to comment.