ThunderAI Posted April 8, 2013 Share Posted April 8, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/276683-omni-scrolling-an-iframe-with-middle-mouse-button/ Share on other sites More sharing options...
InoBB Posted April 30, 2013 Share Posted April 30, 2013 (edited) 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 April 30, 2013 by InoBB Quote Link to comment https://forums.phpfreaks.com/topic/276683-omni-scrolling-an-iframe-with-middle-mouse-button/#findComment-1427383 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.