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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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