Modify ↓
Ticket #2171 (closed enhancement: invalid)
allow containing draggable elements within the window
| Reported by: | scott.gonzalez | Owned by: | paul |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.2.3 |
| Component: | ui | Version: | 1.2.2 |
| Keywords: | draggable containment window | Cc: | |
| Blocking: | Blocked by: |
Description
Add support for containing draggable elements within the window.
$('#drag').draggable({
containment: window
});
I've added a patch, but the behavior is a little strange in Opera because if you move your mouse out of the window while dragging, the page will scroll. The containment behaves as expected in other tested browsers (IE 6, Firefox 2, Safari 3 for Windows).
Attachments
Change History
Changed 5 years ago by scott.gonzalez
-
attachment
containment-window-fixed.patch
added
with fixed position support
comment:1 Changed 5 years ago by scott.gonzal
I just added a new patch which includes fixed position support (requires patch from #2161).
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
