Free Support Forum - groupdocs.com

intallableViewer.js drag with mouse to scroll

Hello,


Please can the installableViewer’s drag to scroll (see $.fn.attachDragger) be made optional. With this enabled, selecting text in the viewer is not very easy as the view scrolls while you are trying to drag to select text.

I had to comment out the line("#"+settings.docViewerId+"").attachDragger();

This code reminded me that there are also places in the DocumentViewer.all.js where the ID of the div that holds the viewer is assumed to be viewerHtmlDiv:

if ($("#viewerHtmlDiv").children().width() < page.w) {
window.pgElement.css(“width”, $("#viewerHtmlDiv").children().width() - 17);
}
else if ($("#viewerHtmlDiv").children().width() > page.w && $("#viewerHtmlDiv").children().height() < page.h) {
window.pgElement.css(“width”, page.w);
}

This forces the consumer to use that name for the div otherwise items do not display correctly.

Thanks,
Darryl

Hi Darryl,


Thanks for using GroupDocs.Viewer for .NET.

This issue has already been logged in our GitHub issues as https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/issues/115. As soon as we have any updates related to it, we’ll notify you. You can also keep track of the issue using the above link.

Thanks for your cooperation.

Warm Regards

Hi Darryl,


We are happy to inform you that your reported issue logged in GitHub issues as https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/issues/115 has been resolved. Please download the latest source code from the GitHub repository.

Warm Regards

Hi Darryl,


You are always welcome.

Warm Regards