mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Merge pull request #18051 from twbs/impl-18044
Add touch-action:manipulation on interactive elements to avoid 300ms click delay
This commit is contained in:
commit
5923e6fc58
@ -8,7 +8,6 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
touch-action: manipulation;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
border: $border-width solid transparent;
|
border: $border-width solid transparent;
|
||||||
|
@ -206,6 +206,28 @@ img {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Avoid 300ms click delay on touch devices that support the `touch-action` CSS property.
|
||||||
|
//
|
||||||
|
// In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch devices and IE Mobile 10-11
|
||||||
|
// DON'T remove the click delay when `<meta name="viewport" content="width=device-width">` is present.
|
||||||
|
// However, they DO support removing the click delay via `touch-action: manipulation`.
|
||||||
|
// See:
|
||||||
|
// * http://caniuse.com/#feat=css-touch-action
|
||||||
|
// * http://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
|
||||||
|
|
||||||
|
a,
|
||||||
|
area,
|
||||||
|
button,
|
||||||
|
[role="button"],
|
||||||
|
input,
|
||||||
|
label,
|
||||||
|
select,
|
||||||
|
summary,
|
||||||
|
textarea {
|
||||||
|
touch-action: manipulation;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Tables
|
// Tables
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user