VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
private void UpdateFocusIndexWhenScroll()
{
var images = imageViewer1.GetVisibleImages();
if (images.Length > 0 && imageViewer1.FocusedIndex != images[0].SourceInfo.PageIndex)
{
imageViewer1.DisableAutoScrollToFocusedImage();
imageViewer1.FocusedIndex = images[0].SourceInfo.PageIndex;
imageViewer1.EnableAutoScrollToFocusedImage();
}
}
private void imageViewer1_Scroll(object sender, ScrollEventArgs e)
{
UpdateFocusIndexWhenScroll();
}
private void ImageViewer1_MouseWheel(object sender, MouseEventArgs e)
{
UpdateFocusIndexWhenScroll();
}
If you have a better solution let me know