Tip: Click lines to highlight, hold ctrl/cmd to multi-select

http://codedumper.com/inayo (2-Aug @ 12:57)

Syntax Highlighted Code

  1.  
  2.        // Keep track of the direction of the drag for use during onDragOver
  3.        var y = Event.getPageY(e);
  4.  
  5.        if (y < this.lastY) {
  6.            this.goingUp = true;
  7.        } else if (y > this.lastY) {
  8.            this.goingUp = false;
  9.        }
  10.  
  11.        this.lastY = y;
  12.  

Plain Code


       // Keep track of the direction of the drag for use during onDragOver
       var y = Event.getPageY(e);

       if (y < this.lastY) {
           this.goingUp = true;
       } else if (y > this.lastY) {
           this.goingUp = false;
       }

       this.lastY = y;

Permalink: http://codedumper.com/inayo