Page MenuHomePhabricator

Fix window-exiting drags and drag-and-hold behaviors in JX.Scrollbar
ClosedPublic

Authored by epriestley on Jan 25 2015, 12:29 AM.
Tags
None
Referenced Files
F14376974: D11487.diff
Sat, Dec 21, 12:34 AM
Unknown Object (File)
Thu, Dec 19, 7:07 AM
Unknown Object (File)
Thu, Dec 19, 6:45 AM
Unknown Object (File)
Fri, Dec 13, 4:49 AM
Unknown Object (File)
Mon, Dec 9, 11:16 PM
Unknown Object (File)
Sun, Dec 8, 11:49 PM
Unknown Object (File)
Sun, Dec 8, 10:22 PM
Unknown Object (File)
Sat, Nov 30, 4:08 PM
Subscribers
Tokens
"Love" token, awarded by johnny-bit.

Details

Summary

Fixes two issues:

  • In Firefox, dragging outside the window and releasing the mouse button would miss the mouseup event. This would leave the bar dragging, even though the user had released the mouse button.
  • In all browsers, dragging the handle and then holding your cursor in one place for more than a second would hide the handle. Instead, never hide the handle during a drag.
Test Plan
  • In Firefox, dragged handle right (outside of window) and released mouse button. Waved cursor over window; no more "sticky" scroll.
  • In FF/Chrome/Safari, dragged handle and held cursor in same position for several seconds. No more handle hide.
  • Waved cursor over window and made sure normal hiding still works.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix window-exiting drags and drag-and-hold behaviors in JX.Scrollbar.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, btrahan.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 25 2015, 12:42 AM
This revision was automatically updated to reflect the committed changes.