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.

Link to comment
Share on other sites

  • 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

Edited by InoBB
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.