Fix UX interaction with channels map

This commit is contained in:
nymkappa 2022-08-01 18:55:35 +02:00
parent 6ba8b0ec58
commit 04d7265a86
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -112,13 +112,15 @@ export class NodesChannelsMap implements OnInit, OnDestroy {
},
viewControl: {
center: this.style === 'widget' ? [0, 0, -10] : undefined,
minDistance: this.style === 'widget' ? 22 : 0.1,
maxDistance: this.style === 'widget' ? 22 : 60,
minDistance: 1,
maxDistance: 60,
distance: this.style === 'widget' ? 22 : 60,
alpha: 90,
panMouseButton: 'left',
rotateSensitivity: 0,
panSensitivity: this.style === 'widget' ? 0 : 1,
zoomSensitivity: this.style === 'widget' ? 0 : 0.5,
panMouseButton: this.style === 'widget' ? null : 'left',
rotateMouseButton: undefined,
zoomSensivity: 0.5,
},
itemStyle: {
color: 'white',