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

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

CHG: done with Archive/19101-20495

File size: 668 bytes
  • ../trunk-jpl/src/m/plot/webgl.js

     
    341341                canvas.rotation[1] += degrees((canvas.lastDeltaY - ev.deltaY) / canvas.clientHeight / canvas.zoomFactor * -2);
    342342               
    343343                if (canvas.rotation[0] > 360) {canvas.rotation[0] -= 360};
    344                 if (canvas.rotation[0] < 0) {canvas.rotation[0] += 360};
     344                if (canvas.rotation[0] < -360) {canvas.rotation[0] += 360};
    345345                if (canvas.rotation[1] > 180) {canvas.rotation[1] -= 360};
    346346                if (canvas.rotation[1] < -180) {canvas.rotation[1] += 360};
    347347               
Note: See TracBrowser for help on using the repository browser.