View Full Version : Resolved scrolling problem
liamallan
07-03-2010, 12:11 AM
hey guys, i have an i-frame of a game on my site, and when u use the mouse scroll to zoom in and zoom out on the game, the page scrolls too.
is there any way i can have it, when u scroll in the game, the page stays where it is?
i would be grateful for ur help!
djr33
07-03-2010, 12:17 AM
This depends on the browser. Sometimes it will scroll one and other times it will scroll both.
One option would be to disable the scroll wheel (and other methods, like arrows?) on the main page using a regular "disable scroling" script (javascript), but that might not work sometimes (depending on browser/security/etc) and also depending on the browser, that might actually stop scrolling in the iframe-- it's not entirely predictable. But I think that would generally work.
I guess you could try to make this more complicated as well by tracking focus on the iframe or main page...
liamallan
07-03-2010, 12:52 AM
thanx, for now i have inserted a disable mousewheel script, seems to work ok, for me at least
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.