Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
allow panning with first mouse button too
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Jan 31, 2017
1 parent c9190c5 commit 09c07ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default class App {
prevX, prevY

function mouseDownHandler(event) {
if (event.button == 1) {
if (event.button == 0 || event.button == 1) {
prevX = event.clientX; prevY = event.clientY
isDragging = true
this.renderer.view.style.cursor = 'move'
Expand Down

0 comments on commit 09c07ee

Please sign in to comment.