Comment 0 for bug 1122154

Revision history for this message
Olivier Tilloy (osomon) wrote : [browser] improve the implementation of selection resizing

(see also bug #1122145 that should be fixed as a prerequisite)

The selection functionality in the browser allows the user to resize the selection rectangle by dragging one of the four handles to include additional blocks.
The current implementation (not merged yet as of reporting this bug, see https://code.launchpad.net/~amanzi-team/kalossi/ubuntu-browser-dom-selection-2/+merge/147645) is rather naïve, it computes the center of the resized selection, gets the DOM element below this point, and iterates up the DOM tree until it finds the largest ancestor that fits in the selection rectangle.

This is hopefully good enough for the demo (considering the tight deadline), but it should be made smarter afterwards.

This bug report should be used to gather ideas on how to make the feature smarter, and track their implementation.