Skip to content

Commit

Permalink
sound mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
eguneys committed Dec 24, 2023
1 parent 8383a75 commit 93c835b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified public/audio/cancel.wav
Binary file not shown.
1 change: 1 addition & 0 deletions src/mouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class Mouse {
let { _onDragStart, _onDragMove, _onDragEnd, _onContextMenu, _onWheel } = hs

const dragStart = (e: Event) => {
e.preventDefault()
_onDragStart?.(ep(e as MouchEvent), (e as MouseEvent).buttons === 2 || (e as MouseEvent).button === 2) }
const dragMove = (e: Event) => { _onDragMove?.(ep(e as MouchEvent)) }
const dragEnd = (e: Event) => { _onDragEnd?.(ep(e as MouchEvent)) }
Expand Down

0 comments on commit 93c835b

Please sign in to comment.