Main Page | Modules | Directories | File List | File Members

-with-window functions


Functions

 setInterval ( 'var newScrollY=Zapatec.Utils.getPageScrollY(); '+ 'if(newScrollY!=oldScrollY){ '+ 'Zapatec.ScrollWithWindow.handler(newScrollY); '+ '}', 50)

Variables

Zapatec Utils getPageScrollY
Zapatec ScrollWithWindow = {}
Zapatec ScrollWithWindow list = []
Zapatec ScrollWithWindow stickiness = 0.25
Zapatec ScrollWithWindow register
Zapatec ScrollWithWindow unregister
Zapatec ScrollWithWindow handler
var oldScrollY = Zapatec.Utils.getPageScrollY()

Function Documentation

setInterval  ) 
 


Variable Documentation

Zapatec Utils getPageScrollY
  A generic Utils function that returns the current scroll position.

Definition at line 489 of file utils.js.

Zapatec ScrollWithWindow = {}
 

Definition at line 497 of file utils.js.

Zapatec ScrollWithWindow list = []
 

Definition at line 498 of file utils.js.

Zapatec ScrollWithWindow stickiness = 0.25
 

Definition at line 500 of file utils.js.

Zapatec ScrollWithWindow register
  Registers a given object to have its style.top set equal to the window scroll position as the browser scrolls.

Parameters:
node [HTMLElement] -- a reference to the node to scroll.

Definition at line 508 of file utils.js.

Zapatec ScrollWithWindow unregister
  Unregisters a given object.

Parameters:
node [HTMLElement] -- a reference to the node to scroll.

Definition at line 525 of file utils.js.

Zapatec ScrollWithWindow handler
 

For internal use only.

Called each time the window is scrolled to set objects' positions.

Parameters:
newScrollY [number] -- the new window scroll position.

Definition at line 540 of file utils.js.

var oldScrollY = Zapatec.Utils.getPageScrollY()
 

Definition at line 556 of file utils.js.