Jump to content

Listbox Shift-Click: Mouse Down Item Start Range


Recommended Posts

Steps to Reproduce:

1) Left-click on an element (see left figure below), continue to hold the mouse button down, drag the cursor to another element (see right figure below), and release the mouse button. Note that the mouse-down event was on element "three" and the mouse-up event was on element "five".

post-17-1149311789.png?width=400

2) Press (and hold down) the <Shift> key and (with the <Shift> key still pressed) left-mouse-click another element of the listbox (see figure below).

Observed Result: The range of element between the initial mouse down element ("three" of step #1) and the <Shift>-clicked element ("seven" of step #2) become selected (see figure below).

post-17-1149311851.png?width=400

Expected Result: The range of element between the final mouse up element ("five" of step #1) and the <Shift>-clicked element ("seven" of step #2) become selected (see figure below).

post-17-1149311895.png?width=400

Final Thoughts: It appears that the shift-click range.start is being defined by the mouse-down location, rather than the selected item. If it has to be associated with the mouse (rather than the selected item) then it should be associated with the mouse-up, rather than the mouse-down location.

Link to comment

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.