Skip to content

Commit

Permalink
Pass through google rightclick event to onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Mar 8, 2023
1 parent 4530b32 commit f38392c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/google-maps/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function createDeckInstance(

const eventListeners = {
click: null,
rightclick: null,
dblclick: null,
mousemove: null,
mouseout: null
Expand Down Expand Up @@ -293,6 +294,8 @@ function handleMouseEvent(deck: Deck, type: string, event) {

switch (type) {
case 'click':
case 'rightclick':
mockEvent.type = 'click';
mockEvent.tapCount = 1;
// Hack: because we do not listen to pointer down, perform picking now
deck._onPointerDown(mockEvent as MjolnirPointerEvent);
Expand Down

0 comments on commit f38392c

Please sign in to comment.