How to activate the mouse scroll bearing of a modal in Bootstrap?

Asked

Viewed 415 times

1

How do I scroll the bar of a PDF file, loaded inside a iframe (that is inside a modal of Bootstrap), work when the bar is clicked and when the scroll mouse (only works when the bar is clicked).

  • Even focusing on scroll does not work?

  • I made an issue to try to clarify what you need, as I understand it. It is still in the analysis queue, but then if it is approved you can easily change or return to the previous version. Take a look.

  • I edited again, looking better by the title I think it was just the opposite. Check there... And put the code there, otherwise it is difficult for someone to answer. btw, already checked if it is not for the configuration of your mouse?

  • @gustavox has nothing to do with setting the mouse, I believe it is the configuration of the modal itself.

  • 1

    You should post the code to increase the chances of someone responding. And in this case the ideal might be to create a verifiable example (using the site snippet, and/or jsfiddle).

1 answer

-1

If you are using some plugin like Perfect Scrollbar or other, your modal component is not getting the effect of the plugin that overrides the normal scrollbar.

Then you need to apply through the JS the effect to the component:

$('#nomeModal').perfectScrollbar();

I hope it helps, I had this same problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.