How can I make the scroll bar of a PDF file, loaded within a iframe
(which is within a modal
of Bootstrap
), work when the bar is clicked and when running scroll
of the mouse (only works when the bar is clicked).
How can I make the scroll bar of a PDF file, loaded within a iframe
(which is within a modal
of Bootstrap
), work when the bar is clicked and when running scroll
of the mouse (only works when the bar is clicked).
If you are using a plugin like Perfect Scrollbar or another, your modal component is not getting the effect of the plugin that overlaps the normal scroll bar.
You then need to apply the effect to the component through JS:
$('#nomeModal').perfectScrollbar();
Hope it helps, I had this same problem.