mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-27 06:15:54 +01:00
Add a hint mode for selecting scrollable elements.
Update issue 151 This should do what you want.
This commit is contained in:
@@ -642,6 +642,9 @@ const RangeFind = Class("RangeFind", {
|
||||
contains: function (range, r)
|
||||
range.compareBoundaryPoints(range.START_TO_END, r) >= 0 &&
|
||||
range.compareBoundaryPoints(range.END_TO_START, r) <= 0,
|
||||
intersects: function (range, r)
|
||||
r.compareBoundaryPoints(range.START_TO_END, range) >= 0 &&
|
||||
r.compareBoundaryPoints(range.END_TO_START, range) <= 0,
|
||||
endpoint: function (range, before) {
|
||||
range = range.cloneRange();
|
||||
range.collapse(before);
|
||||
|
||||
Reference in New Issue
Block a user