Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
25e42ade
Commit
25e42ade
authored
9 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
Add touch-action:manipulation on interactive elements to avoid 300ms click delay
Fixes
#18044
[skip sauce] [skip validator]
parent
6d591edc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scss/_buttons.scss
+0
-1
scss/_buttons.scss
scss/_reboot.scss
+22
-0
scss/_reboot.scss
with
22 additions
and
1 deletion
+22
-1
scss/_buttons.scss
+
0
-
1
View file @
25e42ade
...
...
@@ -8,7 +8,6 @@
text-align
:
center
;
white-space
:
nowrap
;
vertical-align
:
middle
;
touch-action
:
manipulation
;
cursor
:
pointer
;
user-select
:
none
;
border
:
$border-width
solid
transparent
;
...
...
This diff is collapsed.
Click to expand it.
scss/_reboot.scss
+
22
-
0
View file @
25e42ade
...
...
@@ -206,6 +206,28 @@ img {
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
//
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment