Tweaking dragging and resizing