Got dragging working, but resizing is still really iffy.