Scroll

fires when a diagram is being scrolled

void Scroll(object pos){ ... };

Parameters

posobjectthe position of a scroll

Example

var diagram = new dhx.Diagram("diagram_container", { 
    type: "org", 
    scroll: true        
});
 
diagram.events.on("Scroll", function(pos){
    console.log("The diagram has been scrolled")
});

Related samples

Details

The pos object contains x and y coordinates of the current scroll position, e.g.: {x: 67, y: 130}

See also
Back to top