Skip to content

Commit

Permalink
Fix pointer down watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaitanLyss committed Aug 30, 2024
1 parent d9152b3 commit c51a691
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ Thumbs.db
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
selenite-commons-rs/parsedXml
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@selenite/commons",
"version": "0.22.4",
"version": "0.22.5",
"repository": "github:ShaitanLyss/selenite-commons",
"license": "MIT",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions src/lib/utils/html.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ export class PointerDownWatcher {
private constructor() {
if (typeof document === 'undefined') return;
console.debug('Adding pointer down watcher.')
document.addEventListener('pointerdown', this.onpointerdown.bind(this));
document.addEventListener('pointerup', this.onpointerup.bind(this));
document.addEventListener('pointerdown', this.onpointerdown.bind(this), {capture: true});
document.addEventListener('pointerup', this.onpointerup.bind(this), {capture: true});
}

#subscribers = new Set<(value: boolean) => void>();
Expand Down

0 comments on commit c51a691

Please sign in to comment.