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
F14001896: D11487.diff
Fri, Oct 25, 12:59 PM
F13991234: D11487.diff
Tue, Oct 22, 9:25 AM
F13991224: D11487.id.diff
Tue, Oct 22, 9:22 AM
F13991221: D11487.id27632.diff
Tue, Oct 22, 9:21 AM
F13991217: D11487.id27633.diff
Tue, Oct 22, 9:19 AM
F13991205: D11487.id27634.diff
Tue, Oct 22, 9:16 AM
F13963259: D11487.id27634.diff
Oct 15 2024, 2:56 PM
Unknown Object (File)
Oct 11 2024, 7:24 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
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.