Page MenuHomePhabricator

STV drag and drop interface: not entirely clear where you are allowed to drop the lozenge
Closed, ResolvedPublic0.1 Estimated Story PointsBUG REPORT

Description

What is the problem?

Dragging a lozenge from "Not ranked" to "Ranked" (or vice versa), it can be fussy exactly where you drop the lozenge.

There seems to be an invisible element (.oo-ui-draggableGroupElement?) where dropping works, but this does not fill the entire visible input square.

Steps to reproduce problem
  1. Login to https://vote.wikimedia.beta.wmcloud.org (you might need to ask @dom_walden to create you an account)
  2. https://vote.wikimedia.beta.wmcloud.org/wiki/Special:SecurePoll/vote/2746
  3. Drag a voting lozenge from the left "Not ranked" input to somewhere in the bottom half of the "Ranked" input box.

Expected behaviour: It should be moved to the "Ranked" input box.
Observed behaviour: It returns to the "Not ranked" input box.

Environment

Browser: Firefox. Chrome. Safari.
Wiki(s): https://vote.wikimedia.beta.wmcloud.org SecurePoll 3.0.0 (836252e) 07:54, 24 July 2025.

Screenshots

Event Timeline

I was able to reproduce. It seems to me that sometimes the drop area is changing from the entire box, to only on top of other lozenges. It appears to be intermittent. The drop area will go from being the box, to the lozenges, back to being the box, back to being the lozenges, with no (obvious) rhyme or reason.

I can fix it on Chrome by adding height: 100% to the .stv-ranking-draggable-group style.

Change #1174415 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/SecurePoll@master] Make STV ranking draggable area full height

https://gerrit.wikimedia.org/r/1174415

Dreamy_Jazz set the point value for this task to 0.05.Jul 30 2025, 10:06 AM
Dreamy_Jazz changed the point value for this task from 0.05 to 0.1.

Change #1174415 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Make STV ranking draggable area full height

https://gerrit.wikimedia.org/r/1174415

Verified that it's fixed on the beta wikis using the steps to reproduce. This can skip QA.