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
F13238910: D11487.id27632.diff
Tue, May 21, 10:36 PM
F13218864: D11487.id27634.diff
Sat, May 18, 1:20 PM
F13212853: D11487.diff
Fri, May 17, 7:08 AM
F13199856: D11487.diff
Mon, May 13, 7:38 PM
F13199448: D11487.diff
Mon, May 13, 2:54 PM
F13194610: D11487.id27633.diff
Sun, May 12, 9:42 PM
F13179979: D11487.diff
Wed, May 8, 9:34 PM
Unknown Object (File)
Sat, May 4, 9:26 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.