javascript - How can I prevent showing content that is off-screen when a user "drags" mouse across viewing area? -
i using "overflow: hidden" on body tag, hides scroll bars, doesn't prevent user click-dragging mouse reveal outer content when dragging bottom or right-hand edge of browsing window. here's site:
http://entanglement.gopherwoodstudios.com/
to replicate behavior, 1 way (in chrome) press middle mouse button , drag down or right. in ie9, grab , drag menu button edge.
is there application-wide way prevent this, or there property or event-call must rework on every single element?
try setting both overflow-x
, overflow-y
css properties "hidden"
on element serving clipping element.
overflow-x:hidden; overflow-y:hidden;
Comments
Post a Comment