File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,7 @@ function createScene(options) {
337
337
var numPick = pickBuffers . length
338
338
var numObjs = objects . length
339
339
var prevObj = selection . object
340
+
340
341
selection . distance = Infinity
341
342
selection . mouse [ 0 ] = x
342
343
selection . mouse [ 1 ] = y
@@ -346,7 +347,7 @@ function createScene(options) {
346
347
347
348
var change = false
348
349
349
- if ( buttons ) {
350
+ if ( buttons && prevButtons ) {
350
351
mouseRotating = true
351
352
} else {
352
353
if ( mouseRotating ) {
@@ -367,6 +368,7 @@ function createScene(options) {
367
368
}
368
369
var objPick = obj . pick ( result )
369
370
if ( objPick ) {
371
+ selection . buttons = buttons
370
372
selection . screen = result . coord
371
373
selection . distance = result . distance
372
374
selection . object = obj
@@ -380,6 +382,7 @@ function createScene(options) {
380
382
}
381
383
}
382
384
}
385
+
383
386
if ( prevObj && prevObj !== selection . object ) {
384
387
if ( prevObj . highlight ) {
385
388
prevObj . highlight ( null )
You can’t perform that action at this time.
0 commit comments