Jump to content

Omni-Scrolling an iframe with middle mouse button


ThunderAI

Recommended Posts

All,

 

Did something recently change with Chrome that prevents a user from omni-scrolling an iframe with the middle mouse button?  It was possible to utilize the middle mouse button to omni-scroll the content of an iframe but it is no longer possible.  It works in Firefox but not in Chrome. 

 

Is there a better way to allow a user to scroll the content of an iframe that preserves the screen coordinates of that frame?

 

A quick example

 

<iframe src="page.php" scrolling="yes" width="100" height="100" ></iframe>

 

 

page.php

 

<img src="test.png" width="300" >

 

What should happen is that since the image is larger than the iframe size I should be able to click and hold the middle mouse button down on the iframe and scroll in any direction, this is no longer possible.

 

What are some ways to fix that?

 

Thanks.

  • 4 weeks later...

Browsers have changed over the passing years.

With that said, simple functions such as the middle mouse button scrolling are not set within your script(though some languages do have functions that may ALTER those actions).

1) the iframe has to be the focus of your mouses actions. Meaning - you have had to make some kind of click within the iframe  for it to be the focus.

2) back to my first line, browsers have changed the way some actions are dealt with. In Chrome if you click the mouse wheel once, it locks in where all you have to do is move the mouse whichever direction you wish to scroll for content and it moves in tandem with your mouse.

3) the software of your hardware could be out of date. 

 

InnoBB

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.