Skip to content
This repository was archived by the owner on Dec 21, 2025. It is now read-only.

Commit afc4c08

Browse files
Update multiple mobile viewers
1 parent f443b0b commit afc4c08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

viewers/templates/Mobile/MPDB Viewer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@
747747
let positions_count = positions.count;
748748

749749
// Try to unclutter atoms depending on their number
750-
let scale = positions_count < 200 ? 25 : (positions_count < 750 ? 20 : (positions_count < 1500 ? 16 : (positions_count < 15000 ? 12 : 7)));
750+
let scale = positions_count < 200 ? 25 : (positions_count < 750 ? 20 : (positions_count < 1500 ? 17 : (positions_count < 15000 ? 14 : 12)));
751751

752752
for ( var i = 0; i < positions.count; i ++ ) {
753753
position.x = positions.getX( i );

viewers/templates/Mobile/MPDB WebGPU.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@
838838
let positions_count = positions.count;
839839

840840
// Try to unclutter atoms depending on their number
841-
let scale = positions_count < 200 ? 25 : (positions_count < 750 ? 20 : (positions_count < 1500 ? 16 : (positions_count < 15000 ? 12 : 7)));
841+
let scale = positions_count < 200 ? 25 : (positions_count < 750 ? 20 : (positions_count < 1500 ? 17 : (positions_count < 15000 ? 14 : 12)));
842842

843843
for ( var i = 0; i < positions.count; i ++ ) {
844844
position.x = positions.getX( i );

0 commit comments

Comments
 (0)