Skip to content

Commit

Permalink
fix scroll issue with middle mouse button
Browse files Browse the repository at this point in the history
  • Loading branch information
swkeep committed May 28, 2024
1 parent e3bf7ea commit 24f8e4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions html/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ const InventoryContainer = Vue.createApp({
}
},
handleMouseDown(event, slot, inventory) {
if (event.button === 1) return; // skip middle mouse
event.preventDefault();
const itemInSlot = this.getItemInSlot(slot, inventory);
if (event.button === 0) {
Expand Down

0 comments on commit 24f8e4e

Please sign in to comment.