IE - when you scroll by clicking the scrollbar, the viewer jump back to the last position

40 views
Skip to first unread message

Justin Jung

unread,
Apr 6, 2017, 7:25:34 PM4/6/17
to PDFTron WebViewer
Q: IE - when you scroll by clicking the scrollbar, the viewer jump back to the last position

A: The problem is caused by a bug in Internet Explorer with the mouseup event on the scrollbar 
http://stackoverflow.com/questions/29787519/jquery-mouse-up-event-didnt-work-with-ie-11-scrollbar

The reason it's jumping is because the default tool mode is the pan tool and since it never gets a mouse up event it thinks it's still panning. To work around this you can change the default tool mode to something else, for example the annotation edit tool. You can use the following code in a config file:

$(document).on('viewerLoaded', function() {
  readerControl.defaultToolMode = readerControl.toolModeMap['AnnotationEdit'];
});
Reply all
Reply to author
Forward
0 new messages