Page MenuHomePhabricator

Fix three issues with scrolling while dragging items (e.g., on workboards)
ClosedPublic

Authored by epriestley on Sep 9 2014, 8:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 10:36 PM
Unknown Object (File)
Fri, Dec 20, 3:14 AM
Unknown Object (File)
Thu, Dec 19, 5:48 AM
Unknown Object (File)
Mon, Dec 9, 10:36 PM
Unknown Object (File)
Fri, Dec 6, 3:57 PM
Unknown Object (File)
Fri, Dec 6, 10:19 AM
Unknown Object (File)
Wed, Dec 4, 7:19 PM
Unknown Object (File)
Thu, Nov 28, 5:23 PM
Subscribers
Tokens
"Yellow Medal" token, awarded by btrahan.

Details

Summary

Fixes T5979. There are three issues here:

  • We cache document positions when you pick an item up, but don't recalculate them after you scroll, so they get out of date. Dirty the cache when the user scrolls.
  • When we rebuild the cache during a drag (previously, this never happened), the position of the object you're dragging is computed wrong (since it has been moved to be under the cursor). Adjust the effective position of the object you've picked up to put it back in the right place in the list.
  • When you fiddle around at the bottom of a column you can get jumpy redraws as the height adjusts. Put min-height on the container during a drag to prevent this.
Test Plan

In Safari, Chrome and Firefox, dragged items around on columns before and after scrolling the workboard panel.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Fix three issues with scrolling while dragging items (e.g., on workboards).
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Sep 9 2014, 9:16 PM
epriestley updated this revision to Diff 25147.

Closed by commit rPf02aed10e769 (authored by @epriestley).