diff options
author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2019-06-20 19:41:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 19:41:39 -0400 |
commit | a40e7bb5e9d1256002083d7e3f3c4db60cd8e9df (patch) | |
tree | 103ee1707d52410921010b885860aae9bccdf2f4 | |
parent | f2b54dc49205f8ea8944e26e43662a0c8dd08ed0 (diff) |
Fixed missed pointer up event
-rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 69b9e77eb..de5c66c0b 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -259,6 +259,11 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp @action onPointerDown = (e: React.PointerEvent): void => { this._isPointerDown = true; + let onPointerUp = action(() => { + window.removeEventListener("pointerup", onPointerUp) + this._isPointerDown = false + }) + window.addEventListener("pointerup", onPointerUp); var className = (e.target as any).className; if (className === "messageCounter") { e.stopPropagation(); |