source: issm/oecreview/Archive/19101-20495/ISSM-20484-20485.diff

Last change on this file was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 668 bytes
RevLine 
[20498]1Index: ../trunk-jpl/src/m/plot/webgl.js
2===================================================================
3--- ../trunk-jpl/src/m/plot/webgl.js (revision 20484)
4+++ ../trunk-jpl/src/m/plot/webgl.js (revision 20485)
5@@ -341,7 +341,7 @@
6 canvas.rotation[1] += degrees((canvas.lastDeltaY - ev.deltaY) / canvas.clientHeight / canvas.zoomFactor * -2);
7
8 if (canvas.rotation[0] > 360) {canvas.rotation[0] -= 360};
9- if (canvas.rotation[0] < 0) {canvas.rotation[0] += 360};
10+ if (canvas.rotation[0] < -360) {canvas.rotation[0] += 360};
11 if (canvas.rotation[1] > 180) {canvas.rotation[1] -= 360};
12 if (canvas.rotation[1] < -180) {canvas.rotation[1] += 360};
13
Note: See TracBrowser for help on using the repository browser.