File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ proto.tryCreatePlot = function() {
155
155
'webgl setup failed possibly due to' ,
156
156
isMobile ? 'disabling' : 'enabling' ,
157
157
'preserveDrawingBuffer config.' ,
158
- 'The device may not be supported by isMobile module!' ,
158
+ 'The device may not be supported by is-mobile module!' ,
159
159
'Inverting preserveDrawingBuffer option in second attempt to create webgl scene.'
160
160
] . join ( ' ' ) ) ;
161
161
isMobile = opts . glOptions . preserveDrawingBuffer = ! opts . glOptions . preserveDrawingBuffer ;
@@ -219,6 +219,12 @@ proto.initializeGLPlot = function() {
219
219
if ( scene . isAspectChanged ( layout ) ) {
220
220
// scene updates
221
221
update [ scene . id + '.aspectratio' ] = scene . glplot . getAspectratio ( ) ;
222
+
223
+ if ( layout [ scene . id ] . aspectmode !== 'manual' ) {
224
+ scene . fullSceneLayout . aspectmode =
225
+ layout [ scene . id ] . aspectmode =
226
+ update [ scene . id + '.aspectmode' ] = 'manual' ;
227
+ }
222
228
}
223
229
224
230
return update ;
@@ -246,7 +252,6 @@ proto.initializeGLPlot = function() {
246
252
y : s * o . y ,
247
253
z : s * o . z
248
254
} ) ;
249
- scene . fullSceneLayout . aspectmode = layout [ scene . id ] . aspectmode = 'manual' ;
250
255
}
251
256
252
257
relayoutCallback ( scene ) ;
You can’t perform that action at this time.
0 commit comments