1
0
Fork 0
forked from 0x2620/oxjs

new build system: build in /build, dev version in /dev; split up Ox.js; fix tests

This commit is contained in:
rolux 2011-10-07 03:04:47 +02:00
commit d0fe279a0f
366 changed files with 8165 additions and 161926 deletions

View file

@ -745,14 +745,14 @@ Ox.Calendar = function(options, self) {
var deltaZ = 0;
if (!self.mousewheel && deltaY && Math.abs(deltaY) > Math.abs(deltaX)) {
if (deltaY < 0 && self.options.zoom > 0) {
deltaZ = -1
deltaZ = -1;
} else if (deltaY > 0 && self.options.zoom < self.maxZoom) {
deltaZ = 1
deltaZ = 1;
}
if (deltaZ) {
self.options.date = deltaZ == -1 ?
new Date(2 * +self.options.date - +getMouseDate(e)) :
new Date((+self.options.date + +getMouseDate(e)) / 2)
new Date((+self.options.date + +getMouseDate(e)) / 2);
zoomBy(deltaZ);
}
}