Skip to content

Commit 2b5ddec

Browse files
committed
tweak scroll delta to fix machine-to-machine discrepancies
1 parent 0e50599 commit 2b5ddec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/jasmine/tests/geo_test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -2213,13 +2213,13 @@ describe('Test geo zoom/pan/drag interactions:', function() {
22132213
'geo.projection.rotation.lon', 'geo.projection.rotation.lat',
22142214
'geo.projection.scale', 'geo.fitbounds'
22152215
]);
2216-
return scroll([300, 300], [-200, -200]);
2216+
return scroll([300, 300], [-100, -100]);
22172217
})
22182218
.then(function() {
22192219
_assert('after scroll', [
2220-
[-15.19, 16.91], 1.319
2220+
[-17.5597, 18.862], 1.1488
22212221
], [
2222-
[15.19, -16.91], 211.15
2222+
[17.5597, -18.862], 183.818
22232223
], [
22242224
'geo.projection.rotation.lon', 'geo.projection.rotation.lat',
22252225
'geo.projection.scale'
@@ -2228,9 +2228,9 @@ describe('Test geo zoom/pan/drag interactions:', function() {
22282228
})
22292229
.then(function() {
22302230
_assert('after some relayout call that causes a replot', [
2231-
[-15.19, 16.91], 1.319
2231+
[-17.5597, 18.862], 1.1488
22322232
], [
2233-
[15.19, -16.91], 211.15
2233+
[17.5597, -18.862], 183.818
22342234
], [
22352235
'geo.showocean'
22362236
]);

0 commit comments

Comments
 (0)