Vergleich jscripts/slider.js - 1.6.1 - 1.6.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 1Zeile 1
// Copyright (c) 2005-2008 Marty Haught, Thomas Fuchs



// script.aculo.us slider.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010

// Copyright (c) 2005-2010 Marty Haught, Thomas Fuchs

//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/

//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/

Zeile 207Zeile 209
        var pointer  = [Event.pointerX(event), Event.pointerY(event)];
var track = handle;
if (track==this.track) {

        var pointer  = [Event.pointerX(event), Event.pointerY(event)];
var track = handle;
if (track==this.track) {

          var offsets  = Position.cumulativeOffset(this.track);

          var offsets  = this.track.cumulativeOffset();

          this.event = event;
this.setValue(this.translateToValue(
(this.isVertical() ? pointer[1]-offsets[1] : pointer[0]-offsets[0])-(this.handleLength/2)
));

          this.event = event;
this.setValue(this.translateToValue(
(this.isVertical() ? pointer[1]-offsets[1] : pointer[0]-offsets[0])-(this.handleLength/2)
));

          var offsets  = Position.cumulativeOffset(this.activeHandle);

          var offsets  = this.activeHandle.cumulativeOffset();

          this.offsetX = (pointer[0] - offsets[0]);
this.offsetY = (pointer[1] - offsets[1]);
} else {

          this.offsetX = (pointer[0] - offsets[0]);
this.offsetY = (pointer[1] - offsets[1]);
} else {

Zeile 225Zeile 227
            this.activeHandleIdx = this.handles.indexOf(this.activeHandle);
this.updateStyles();


            this.activeHandleIdx = this.handles.indexOf(this.activeHandle);
this.updateStyles();


            var offsets  = Position.cumulativeOffset(this.activeHandle);

            var offsets  = this.activeHandle.cumulativeOffset();

            this.offsetX = (pointer[0] - offsets[0]);
this.offsetY = (pointer[1] - offsets[1]);
}

            this.offsetX = (pointer[0] - offsets[0]);
this.offsetY = (pointer[1] - offsets[1]);
}

Zeile 244Zeile 246
  },
draw: function(event) {
var pointer = [Event.pointerX(event), Event.pointerY(event)];

  },
draw: function(event) {
var pointer = [Event.pointerX(event), Event.pointerY(event)];

    var offsets = Position.cumulativeOffset(this.track);

    var offsets = this.track.cumulativeOffset();

    pointer[0] -= this.offsetX + offsets[0];
pointer[1] -= this.offsetY + offsets[1];
this.event = event;

    pointer[0] -= this.offsetX + offsets[0];
pointer[1] -= this.offsetY + offsets[1];
this.event = event;