Skip to content

Commit 1ee9f42

Browse files
authoredSep 16, 2023
Fix/626 (#627)
* fix: touch support is reverted to only checking TouchEvent support * ci: changeset * chore: update deps * ci: update actions * Update pnpm-lock.yaml
1 parent c19ff0b commit 1ee9f42

File tree

9 files changed

+2191
-2979
lines changed

9 files changed

+2191
-2979
lines changed
 

‎.changeset/olive-bottles-hear.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@use-gesture/core': minor
3+
---
4+
5+
Fix: touch support is reverted to only checking TouchEvent support #626

‎.github/workflows/documentation.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout repo
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020

2121
- name: Use Node
2222
uses: actions/setup-node@v3
@@ -25,7 +25,7 @@ jobs:
2525

2626
- uses: pnpm/action-setup@v2
2727
with:
28-
version: 8.3.1
28+
version: 8
2929
run_install: true
3030

3131
- name: Build documentation

‎.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repo
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- name: Use Node
2626
uses: actions/setup-node@v3
@@ -37,7 +37,7 @@ jobs:
3737
3838
- uses: pnpm/action-setup@v2
3939
with:
40-
version: 8.3.1
40+
version: 8
4141
run_install: |
4242
args: [--filter "@use-gesture/*"]
4343

‎.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: checkout code repository
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

@@ -34,7 +34,7 @@ jobs:
3434
3535
- uses: pnpm/action-setup@v2
3636
with:
37-
version: 8.3.1
37+
version: 8
3838
run_install: |
3939
args: [--filter "@use-gesture/*"]
4040

‎demo/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
},
2727
"devDependencies": {
2828
"@types/lodash.clamp": "^4.0.7",
29-
"@types/react": "^18.0.24",
30-
"@types/react-dom": "^18.0.8",
29+
"@types/react": "^18.2.21",
30+
"@types/react-dom": "^18.2.7",
3131
"@types/three": "^0.140.0",
3232
"@vitejs/plugin-react": "^3.1.0",
33-
"typescript": "^5.0.4",
33+
"typescript": "^5.2.2",
3434
"typescript-plugin-css-modules": "^5.0.1",
35-
"vite": "^4.2.1"
35+
"vite": "^4.4.9"
3636
}
3737
}

‎documentation/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"gatsby-plugin-google-analytics": "^4.24.0",
2323
"gatsby-plugin-pnpm": "^1.2.10",
2424
"lethargy": "^1.0.9",
25-
"leva": "^0.9.25",
25+
"leva": "^0.9.35",
2626
"mdx-observable": "^0.2.0",
2727
"parse-numeric-range": "^1.3.0",
2828
"react": "^18.2.0",

‎package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -73,41 +73,41 @@
7373
]
7474
},
7575
"devDependencies": {
76-
"@babel/core": "^7.21.8",
77-
"@babel/plugin-syntax-flow": "^7.21.4",
78-
"@babel/plugin-transform-react-jsx": "^7.21.5",
79-
"@babel/preset-env": "^7.21.5",
80-
"@babel/preset-react": "^7.18.6",
81-
"@babel/preset-typescript": "^7.21.5",
82-
"@changesets/cli": "^2.26.1",
83-
"@preconstruct/cli": "^2.7.0",
76+
"@babel/core": "^7.22.19",
77+
"@babel/plugin-syntax-flow": "^7.22.5",
78+
"@babel/plugin-transform-react-jsx": "^7.22.15",
79+
"@babel/preset-env": "^7.22.15",
80+
"@babel/preset-react": "^7.22.15",
81+
"@babel/preset-typescript": "^7.22.15",
82+
"@changesets/cli": "^2.26.2",
83+
"@preconstruct/cli": "^2.8.1",
8484
"@size-limit/preset-small-lib": "^7.0.8",
8585
"@testing-library/jest-dom": "^5.16.5",
8686
"@testing-library/react": "^13.2.0",
87-
"@types/jest": "^27.5.1",
88-
"@types/node": "^20.2.1",
89-
"@types/react": "^18.2.6",
90-
"@types/react-dom": "^18.2.4",
91-
"@typescript-eslint/eslint-plugin": "^5.59.6",
92-
"@typescript-eslint/parser": "^5.59.6",
87+
"@types/jest": "^27.5.2",
88+
"@types/node": "^20.6.2",
89+
"@types/react": "^18.2.21",
90+
"@types/react-dom": "^18.2.7",
91+
"@typescript-eslint/eslint-plugin": "^5.62.0",
92+
"@typescript-eslint/parser": "^5.62.0",
9393
"babel-jest": "^29.4.1",
94-
"eslint": "^8.41.0",
95-
"eslint-config-prettier": "^8.6.0",
94+
"eslint": "^8.49.0",
95+
"eslint-config-prettier": "^8.10.0",
9696
"eslint-config-react-app": "^7.0.1",
9797
"eslint-plugin-jest-dom": "^4.0.3",
9898
"eslint-plugin-react-hooks": "^4.6.0",
99-
"eslint-plugin-testing-library": "^5.10.0",
99+
"eslint-plugin-testing-library": "^5.11.1",
100100
"husky": "^8.0.3",
101101
"jest": "^27.5.1",
102-
"pnpm": "^8.5.1",
102+
"pnpm": "^8.7.5",
103103
"postinstall-postinstall": "^2.1.0",
104104
"prettier": "^2.8.8",
105105
"pretty-quick": "^3.1.3",
106106
"react": "^18.2.0",
107107
"react-dom": "^18.2.0",
108108
"size-limit": "^7.0.8",
109109
"tsd": "^0.28.1",
110-
"typescript": "^5.0.4"
110+
"typescript": "^5.2.2"
111111
},
112112
"lint-staged": {
113113
"*.js": "eslint --cache --fix",

‎packages/core/src/config/support.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ export const SUPPORT = {
3434
* some touchscreens using webkits don't have 'ontouchstart' in window. So
3535
* we're considering that browsers support TouchEvent if they have
3636
* `maxTouchPoints > 1`
37+
*
38+
* Update 16/09/2023: This generates failure on other Windows systems, so reverting
39+
* back to detecting TouchEvent support only.
40+
* https://github.com/pmndrs/use-gesture/issues/626
3741
*/
38-
// touch: supportsTouchEvents(),
39-
touch: isTouchScreen(),
42+
touch: supportsTouchEvents(),
43+
// touch: isTouchScreen(),
4044
touchscreen: isTouchScreen(),
4145
pointer: supportsPointerEvents(),
4246
pointerLock: supportsPointerLock()

‎pnpm-lock.yaml

+2,150-2,947
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.