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
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
Unknown Object (File)
Oct 25 2024, 12:59 PM
Unknown Object (File)
Oct 22 2024, 9:25 AM
Unknown Object (File)
Oct 22 2024, 9:22 AM
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
Branch
scrollx4
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4029
Build 4042: [Placeholder Plan] Wait for 30 Seconds

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.