forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1561726 - Modify dragVerticalScrollbar() to support dragging the …
…viewport scrollbar as well. r=kats Dragging the viewport scrollbar is accomplished by passing in a window rather than an element. Note that we can't just pass in the window's document.documentElement, because coordinatesRelativeToScreen() would not give the correct result for it. This is turn is because for a scrollable <div>, getBoundingClientRect() returns the scroll frame's outer rect, but for the <html> element, getBoundingClientRect() returns the root scroll frame's inner rect. Differential Revision: https://phabricator.services.mozilla.com/D34258
- Loading branch information
1 parent
b10eea0
commit e58ec9a
Showing
1 changed file
with
28 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters