diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-19 21:31:45 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-19 21:31:45 -0400 |
| commit | a75ce06979b17457e6ccbdda8fb2217815757036 (patch) | |
| tree | c8ebe5ed4853bc6435a69a453e9073cbf056c3ec /src/Utils.ts | |
| parent | b3f689c2ce60f92574430dad0448650ccf6b8d7e (diff) | |
cleaned up facet collections to not require an additional document
Diffstat (limited to 'src/Utils.ts')
| -rw-r--r-- | src/Utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 3786b4f6f..e3ec10dcd 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -498,7 +498,7 @@ export function setupMoveUpEvents( }; const _upEvent = (e: PointerEvent): void => { upEvent(e); - if (Math.abs(e.clientX - (target as any)._downX) < 4 || Math.abs(e.clientY - (target as any)._downY) < 4) { + if (Math.abs(e.clientX - (target as any)._downX) < 4 && Math.abs(e.clientY - (target as any)._downY) < 4) { clickEvent(e); } document.removeEventListener("pointermove", _moveEvent); |
