Skip to content

Commit 9bd8a5f

Browse files
authored
fix: Double click event on rsp toggling components (#7858)
1 parent b9bd855 commit 9bd8a5f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/@adobe/spectrum-css-temp/components/checkbox/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ governing permissions and limitations under the License.
6767
opacity: .0001;
6868
z-index: 1;
6969

70+
/* prevent double click event due to browser waiting to fire double tap */
71+
touch-action: manipulation;
7072
cursor: default;
7173

7274
&:disabled {

packages/@adobe/spectrum-css-temp/components/toggle/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ governing permissions and limitations under the License.
5656
opacity: .0001;
5757
z-index: 1;
5858

59+
/* prevent double click event due to browser waiting to fire double tap */
60+
touch-action: manipulation;
5961
cursor: default;
6062

6163
&:checked + .spectrum-ToggleSwitch-switch {

0 commit comments

Comments
 (0)