Skip to content

Commit

Permalink
Allow hammer to detect drag events with right click
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui-Jesus committed Jul 13, 2022
1 parent ff687ea commit 6d195f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/pointerevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class PointerEventInput extends Input {
let storeIndex = inArray(store, ev.pointerId, 'pointerId');

// start and mouse must be down
if (eventType & INPUT_START && (ev.button === 0 || isTouch)) {
if (eventType & INPUT_START && (ev.button === 0 || ev.button === 2 || isTouch)) {
if (storeIndex < 0) {
store.push(ev);
storeIndex = store.length - 1;
Expand Down

0 comments on commit 6d195f0

Please sign in to comment.