Error processing SSI file
LEADTOOLS JavaScript (Leadtools.Controls)

ImageViewerAutoPanInteractiveMode Object

Show in webframe
Example 
Members 
Automatically pans the view when the mouse or touch is next to the edge.
Syntax
function Leadtools.Controls.ImageViewerAutoPanInteractiveMode() 
Remarks

ImageViewerAutoPanInteractiveMode derives from ImageViewerInteractiveMode and subscribes to the following events of the InteractiveService:

ImageViewerAutoPanInteractiveMode works when the view boundary is larger than the current image viewer client area as follows:

ImageViewerAutoPanInteractiveMode can work with or without the user holding a mouse button down through the value of MouseButtons. It can also be combined with any other mode to allow auto-panning the viewer while the other mode is running. The example code shows how to use auto-pan with ImageViewerRubberBandInteractiveMode to allow drawing a rubber band and moving towards the edge of the viewer when the user reaches the edge. This is the auto-pan performing extra functionality to rubber-band.

For more information, refer to Image Viewer Interactive Modes.

Example
this._imageViewer.interactiveModes.beginUpdate();
var autopan = new lt.Controls.ImageViewerAutoPanInteractiveMode();
autopan.panDelay = 100;
this._imageViewer.interactiveModes.add(autopan);
this._imageViewer.interactiveModes.endUpdate();
See Also

Reference

ImageViewerAutoPanInteractiveMode Members
Leadtools.Controls Namespace

Error processing SSI file