teynon Posted March 7, 2013 Share Posted March 7, 2013 http://tomsfreelance.com/windows_virtual_security/ I'm working on a little project to help people learn / apply knowledge to prevent things like phishing attempts, etc. I have started creating a virtual windows setup in jQuery / html / css. Everythings going ok, except dragging a window (open outlook, doubleclick the title bar or just start dragging the titlebar). When the user drags the window to the right or bottom to the extent that the mouse touches the edge, the page starts to stretch. Does anyone know how to prevent this? There is currently overflow: hidden; set on html and body. I'd prefer not to set the containment on the draggable (I can put it to "body"), but then I'd like the windows to be able to partially disappear off screen (the way it will in windows). Link to comment https://forums.phpfreaks.com/topic/275355-jquery-draggable-prevent-dragging-off-of-page/ Share on other sites More sharing options...
teynon Posted March 7, 2013 Author Share Posted March 7, 2013 Got it. Draggable has option scroll. Go figure. .draggable( { scroll : false } ); Link to comment https://forums.phpfreaks.com/topic/275355-jquery-draggable-prevent-dragging-off-of-page/#findComment-1417143 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.