Merge pull request #2234 from mempool/nymkappa/bugfix/world-map-ux

Fix UX interaction with channels map
This commit is contained in:
wiz 2022-08-01 18:25:05 +00:00 committed by GitHub
commit 886498fe01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,13 +112,15 @@ export class NodesChannelsMap implements OnInit, OnDestroy {
}, },
viewControl: { viewControl: {
center: this.style === 'widget' ? [0, 0, -10] : undefined, center: this.style === 'widget' ? [0, 0, -10] : undefined,
minDistance: this.style === 'widget' ? 22 : 0.1, minDistance: 1,
maxDistance: this.style === 'widget' ? 22 : 60, maxDistance: 60,
distance: this.style === 'widget' ? 22 : 60, distance: this.style === 'widget' ? 22 : 60,
alpha: 90, 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, rotateMouseButton: undefined,
zoomSensivity: 0.5,
}, },
itemStyle: { itemStyle: {
color: 'white', color: 'white',