Consider inner and outer documents of the framed instance as a source of mouse events when resizing widget.