@@ -1153,7 +1153,9 @@ describe('mapbox plots', function() {
1153
1153
. then ( done , done . fail ) ;
1154
1154
} , LONG_TIMEOUT_INTERVAL ) ;
1155
1155
1156
- it ( '@noCI @gl should respect scrollZoom config option' , function ( done ) {
1156
+ fit ( '@noCI @gl should respect scrollZoom config option' , function ( done ) {
1157
+ var mockCopy2 = Lib . extendDeep ( { } , mock ) ;
1158
+ mockCopy2 . config = { scrollZoom : false } ;
1157
1159
var relayoutCnt = 0 ;
1158
1160
var addOnGd = function ( ) {
1159
1161
gd . on ( 'plotly_relayout' , function ( ) { relayoutCnt ++ ; } ) ;
@@ -1170,6 +1172,7 @@ describe('mapbox plots', function() {
1170
1172
1171
1173
var zoom = getMapInfo ( gd ) . zoom ;
1172
1174
expect ( zoom ) . toBeCloseTo ( 1.234 ) ;
1175
+ var zoom0 = zoom ;
1173
1176
1174
1177
addOnGd ( ) ;
1175
1178
@@ -1199,6 +1202,14 @@ describe('mapbox plots', function() {
1199
1202
var zoomNew = getMapInfo ( gd ) . zoom ;
1200
1203
expect ( zoomNew ) . toBeGreaterThan ( zoom ) ;
1201
1204
} )
1205
+ . then ( function ( ) { return Plotly . newPlot ( gd , mockCopy2 ) ; } )
1206
+ . then ( addOnGd )
1207
+ . then ( _scroll )
1208
+ . then ( function ( ) {
1209
+ // see https://github.com/plotly/plotly.js/issues/3738
1210
+ var zoomNew = getMapInfo ( gd ) . zoom ;
1211
+ expect ( zoomNew ) . toBe ( zoom0 ) ;
1212
+ } )
1202
1213
. then ( done , done . fail ) ;
1203
1214
} , LONG_TIMEOUT_INTERVAL ) ;
1204
1215
0 commit comments