Leadtools.Controls Namespace : ImageViewerPagerInteractiveMode Object |
function Leadtools.Controls.ImageViewerPagerInteractiveMode()
ImageViewerPagerInteractiveMode derives from ImageViewerInteractiveMode and subscribes to the following events of the InteractiveService:
When the user clicks and drags on the viewer surface, the current active item index changes in the viewer accordingly.
This mode works by calculating the maximum change for the operation (number of items). Then normalizing this value across the current height of the viewer. When the user clicks and drags on the viewer, the value changes based on the current location. Dragging up will decrease value while dragging down will increase the value.
For more information, refer to Image Viewer Interactive Modes.
this._imageViewer.interactiveModes.beginUpdate(); var pagerInteractiveMode = new lt.Controls.ImageViewerPagerInteractiveMode() this._imageViewer.interactiveModes.add(pagerInteractiveMode); this._imageViewer.interactiveModes.endUpdate();