Skip to content

Commit

Permalink
fix: worker example
Browse files Browse the repository at this point in the history
  • Loading branch information
yomotsu committed Feb 14, 2024
1 parent e09d1b8 commit a8e1ef1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions examples/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ self.onmessage = ( { data } ) => {

}

case 'pointerdown':
case 'pointerdown': {

const { event } = payload;
pseudoElement.dispatchEvent( { type: action, ...event } );
break;

}

case 'pointermove':
case 'pointerup': {

const { event } = payload;
pseudoElement.dispatchEvent( { type: action, ...event } );
pseudoElement.ownerDocument.dispatchEvent( { type: action, ...event } );
break;

}
Expand Down

0 comments on commit a8e1ef1

Please sign in to comment.