web/res/js/live-polemic.js
changeset 988 954019f62866
parent 919 e126d3e1e186
child 1474 53f0f4ed20c8
equal deleted inserted replaced
987:18cb05f027a0 988:954019f62866
  1083 		}
  1083 		}
  1084     });
  1084     });
  1085     $("#timeline").mousewheel(function(e, d) {
  1085     $("#timeline").mousewheel(function(e, d) {
  1086         twCx.wheelDelta += d;
  1086         twCx.wheelDelta += d;
  1087         if (Math.abs(twCx.wheelDelta) >= 1) {
  1087         if (Math.abs(twCx.wheelDelta) >= 1) {
  1088             if (twCx.wheelDelta > 0) {
  1088             if (twCx.wheelDelta > 0) {
  1089                 tl = Math.min(twCx.date_levels.length - 1, twCx.timeLevel + 1);
  1089                 tl = Math.min(twCx.date_levels.length - 1, twCx.timeLevel + 1);
  1090             } else {
  1090             } else {
  1091                 tl = Math.max(0, twCx.timeLevel - 1);
  1091                 tl = Math.max(0, twCx.timeLevel - 1);
  1092             }
  1092             }
  1093             if (tl != twCx.timeLevel) {
  1093             if (tl != twCx.timeLevel) {