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

Commit 09c07ee

Browse files
committed
allow panning with first mouse button too
1 parent c9190c5 commit 09c07ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default class App {
162162
prevX, prevY
163163

164164
function mouseDownHandler(event) {
165-
if (event.button == 1) {
165+
if (event.button == 0 || event.button == 1) {
166166
prevX = event.clientX; prevY = event.clientY
167167
isDragging = true
168168
this.renderer.view.style.cursor = 'move'

0 commit comments

Comments
 (0)