0

I have two scrollable elements: one on the left side and one on the right side of the page. The left one is normal div element, the right one is a object element which has a PDF embedded.

<object width="100%" height="100%" data="@ViewBag.ImageUrl" ></object>

When I scroll the left side div, the right side PDF div should automatically should get scrolled too. The PDF is displayed in a Object element (Object is embedded in partial view)

Adriel Santos
  • 612
  • 7
  • 14
daoootim
  • 1
  • 1
  • Hey, you should add more code examples of what you're trying to achieve. You should also avoid using images on your question. I believe that what you're trying to implement was already asked here: https://stackoverflow.com/questions/9236314/how-do-i-synchronize-the-scroll-position-of-two-divs – Adriel Santos Sep 11 '20 at 21:07
  • @Adriel thanks solution you have mention works in case both side are div i have pdf displayed in which scroll is enabled so i want to scroll left div with pdf div. – daoootim Sep 12 '20 at 07:45
  • I see, can you post an example on https://jsfiddle.net/ ? It will be easier to us to find a solution – Adriel Santos Sep 12 '20 at 12:15

0 Answers0