Speed up the scrolling of Mobile Viewer panel

By Daniel Du

You may find the the scrolling of legend and property panel is too slow in iPad when you have many items in the panel.

Here is a workaround for this.

  1. Open MobileViewerlibmobileviewerSF.js

  2. Go to function onScroll: function(e)

  3. Add diffY *= 4; after if(diffY != 0)

if(diffY != 0)
{
 diffY *= 4;
var newTop = this.startDragOffsetY - diffY;
var visibleHeight = this.parentDiv.clientHeight                      - this.titleBarDiv.clientHeight;
if(newTop < visibleHeight                  - this.scrollPanelDiv.scrollHeight)
{
newTop = visibleHeight                   - this.scrollPanelDiv.scrollHeight;
this.captureDragStart(e);
}
...

To make it effective, please open C:Program FilesAutodeskAutodesk Infrastructure Web Server Extension 2012wwwMobileViewerindex.html and change JavaScript references to this modified file:

<!-- For debugging, use these links-->
http://lib/mobileviewerSF.js

You may want to check this blog for more detail information.

Hope this helps!


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading