Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed Aug 22, 2024
1 parent 8a284a8 commit 2823c06
Show file tree
Hide file tree
Showing 4 changed files with 5,612 additions and 4,304 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
version: 9.8.0

- name: Set up Node.js
uses: actions/setup-node@v4
Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "Simon Reinisch <contact@reinisch.io>",
"private": true,
"license": "MIT",
"packageManager": "pnpm@8.0.0",
"packageManager": "pnpm@9.8.0",
"engines": {
"node": "^20"
},
Expand All @@ -18,27 +18,27 @@
"release:patch": "lerna version patch"
},
"devDependencies": {
"@preact/preset-vite": "2.8.1",
"@types/react": "18.2.79",
"@types/react-dom": "18.2.25",
"@typescript-eslint/eslint-plugin": "7.7.1",
"@typescript-eslint/parser": "7.7.1",
"@vitejs/plugin-react": "4.2.1",
"@vitejs/plugin-vue": "5.0.4",
"@vue/compiler-sfc": "3.4.25",
"@preact/preset-vite": "2.9.0",
"@types/react": "18.3.4",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "8.2.0",
"@typescript-eslint/parser": "8.2.0",
"@vitejs/plugin-react": "4.3.1",
"@vitejs/plugin-vue": "5.1.2",
"@vue/compiler-sfc": "3.4.38",
"@vue/eslint-config-typescript": "13.0.0",
"eslint": "8.57.0",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-vue": "9.25.0",
"lerna": "8.1.2",
"preact": "10.20.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.4.5",
"vite": "5.2.10",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-vue": "9.27.0",
"lerna": "8.1.8",
"preact": "10.23.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"typescript": "5.5.4",
"vite": "5.4.2",
"vite-plugin-banner": "0.7.1",
"vite-plugin-dts": "3.9.0",
"vue": "3.4.25",
"vue-tsc": "2.0.14"
"vite-plugin-dts": "4.0.3",
"vue": "3.4.38",
"vue-tsc": "2.0.29"
}
}
14 changes: 10 additions & 4 deletions packages/vanilla/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ export default class SelectionArea extends EventTarget<SelectionEvents> {
this._clippingElement.appendChild(this._area);

this._area.classList.add(selectionAreaClass);
selectionContainerClass && this._clippingElement.classList.add(selectionContainerClass);

if (selectionContainerClass) {
this._clippingElement.classList.add(selectionContainerClass);
}

css(this._area, {
willChange: 'top, left, bottom, right, width, height',
Expand Down Expand Up @@ -145,9 +148,12 @@ export default class SelectionArea extends EventTarget<SelectionEvents> {
const fn = activate ? on : off;

fn(document, 'mousedown', this._onTapStart);
features.touch && fn(document, 'touchstart', this._onTapStart, {
passive: false
});

if(features.touch) {
fn(document, 'touchstart', this._onTapStart, {
passive: false
});
}
}

_onTapStart(evt: MouseEvent | TouchEvent, silent = false): void {
Expand Down
Loading

0 comments on commit 2823c06

Please sign in to comment.