X
Tap here to go to the mobile version of the site.

Support Forum

two pdf on a window only one accept control

Posted

I have a little web with two embebed pdf, but touch control with touch screen only affects one. i.e: if i tap on right one to scroll down and meanwhile i try to do the same on second one, first one starts to zoom on/out, like if both fingers were on the same pdf.

Any config to free this and allow interact with 2 pdf at the same time?

thx in advance

I have a little web with two embebed pdf, but touch control with touch screen only affects one. i.e: if i tap on right one to scroll down and meanwhile i try to do the same on second one, first one starts to zoom on/out, like if both fingers were on the same pdf. Any config to free this and allow interact with 2 pdf at the same time? thx in advance

Modified by eru.tat

Chosen solution

eru.tat said

We should be able to scroll both pdf at the same time with two fingers,one finger on each frame, but instead of that webpage zooms.

If I try to vertical scroll with one finger on each PDF, it just ignores me. Perhaps it depends on how far apart your fingers are?

This might not be a supported behavior with iframes.

You might be able to use a script to synchronize the scrolling. I've seen solutions in a web search for synchronizing scrolling of div's but I didn't find a recent one for iframe's in the initial results.

Read this answer in context 0
Quote
RashanH 1 solutions 44 answers

Hello Eru.tat,

Could you please post the link of that page, the source of those elements, or at lease a screenshot. This will help contributes to see the issue clearly.

Thanks!

Hello Eru.tat, Could you please post the link of that page, the source of those elements, or at lease a screenshot. This will help contributes to see the issue clearly. Thanks!
Was this helpful to you?
Quote

Question owner

Rashan Hasaranga said

Hello Eru.tat, Could you please post the link of that page, the source of those elements, or at lease a screenshot. This will help contributes to see the issue clearly. Thanks!

Thx for ur fast reply code is veri simple my friend. just two embed pdf in same web.

inside <body>

< div style="width:100%;">
   
           < div style="width:45%;float:left;">
               < div >
                   <iframe style=""   width="98%" height="900px"  src="ANYPDF.pdf#view=FitH&scrollbar=0&toolbar=0" >
                   </iframe>
               < /div>
           < /div>
           < div style="width:45%;float:left;">
               < div >
                       <iframe style=""   width="98%" height="900px"  src="ANYPDF.pdf#view=FitH&scrollbar=0&toolbar=0" >
                       </iframe>
               < /div>
           < /div>
           

< /div>]

''Rashan Hasaranga [[#answer-1272882|said]]'' <blockquote> Hello Eru.tat, Could you please post the link of that page, the source of those elements, or at lease a screenshot. This will help contributes to see the issue clearly. Thanks! </blockquote> Thx for ur fast reply code is veri simple my friend. just two embed pdf in same web. inside <body> <code> < div style="width:100%;"> < div style="width:45%;float:left;"> < div > <iframe style="" width="98%" height="900px" src="ANYPDF.pdf#view=FitH&scrollbar=0&toolbar=0" > </iframe> < /div> < /div> < div style="width:45%;float:left;"> < div > <iframe style="" width="98%" height="900px" src="ANYPDF.pdf#view=FitH&scrollbar=0&toolbar=0" > </iframe> < /div> < /div> < /div>] </code>

Modified by eru.tat

Was this helpful to you? 0
Quote
jscher2000
  • Top 10 Contributor
8838 solutions 72242 answers

I set up a sample document, but I don't understand the steps you are using here:

eru.tat said

if i tap on right one to scroll down and meanwhile i try to do the same on second one, first one starts to zoom on/out, like if both fingers were on the same pdf.

Are you scrolling by swiping on the touchscreen, or using a different device?

If I use pinch-zoom on the screen, it affects the entire page and not just a particular framed document.

I set up a sample document, but I don't understand the steps you are using here: ''eru.tat [[#question-1274896|said]]'' <blockquote> if i tap on right one to scroll down and meanwhile i try to do the same on second one, first one starts to zoom on/out, like if both fingers were on the same pdf. </blockquote> Are you scrolling by swiping on the touchscreen, or using a different device? If I use pinch-zoom on the screen, it affects the entire page and not just a particular framed document.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8838 solutions 72242 answers
Oops, forgot the link: https://www.jeffersonscher.com/temp/iframe-pdfs.html
Was this helpful to you?
Quote

Question owner

jscher2000 said

I set up a sample document, but I don't understand the steps you are using here: eru.tat said
if i tap on right one to scroll down and meanwhile i try to do the same on second one, first one starts to zoom on/out, like if both fingers were on the same pdf.

Are you scrolling by swiping on the touchscreen, or using a different device?

If I use pinch-zoom on the screen, it affects the entire page and not just a particular framed document.

Yeah thats what Im trying to say. Sorry for my painful english.


U cant interact with both pdfs at the same time. We should be able to scroll both pdf at the same time with two fingers,one finger on each frame, but instead of that webpage zooms.

''jscher2000 [[#answer-1272946|said]]'' <blockquote> I set up a sample document, but I don't understand the steps you are using here: ''eru.tat [[#question-1274896|said]]'' <blockquote> if i tap on right one to scroll down and meanwhile i try to do the same on second one, first one starts to zoom on/out, like if both fingers were on the same pdf. </blockquote> Are you scrolling by swiping on the touchscreen, or using a different device? If I use pinch-zoom on the screen, it affects the entire page and not just a particular framed document. </blockquote> Yeah thats what Im trying to say. Sorry for my painful english. U cant interact with both pdfs at the same time. We should be able to scroll both pdf at the same time with two fingers,one finger on each frame, but instead of that webpage zooms.

Modified by eru.tat

Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8838 solutions 72242 answers

Chosen Solution

eru.tat said

We should be able to scroll both pdf at the same time with two fingers,one finger on each frame, but instead of that webpage zooms.

If I try to vertical scroll with one finger on each PDF, it just ignores me. Perhaps it depends on how far apart your fingers are?

This might not be a supported behavior with iframes.

You might be able to use a script to synchronize the scrolling. I've seen solutions in a web search for synchronizing scrolling of div's but I didn't find a recent one for iframe's in the initial results.

''eru.tat [[#answer-1273174|said]]'' <blockquote>We should be able to scroll both pdf at the same time with two fingers,one finger on each frame, but instead of that webpage zooms. </blockquote> If I try to vertical scroll with one finger on each PDF, it just ignores me. Perhaps it depends on how far apart your fingers are? This might not be a supported behavior with iframes. You might be able to use a script to synchronize the scrolling. I've seen solutions in a web search for synchronizing scrolling of div's but I didn't find a recent one for iframe's in the initial results.
Was this helpful to you?
Quote

Question owner

Yeah surely are those I found too in stack of. But I don't want to sync em, I would like to be able to work each one independent of each other

Yeah surely are those I found too in stack of. But I don't want to sync em, I would like to be able to work each one independent of each other
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.