aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/animationtimeline/Keyframe.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/animationtimeline/Keyframe.tsx')
-rw-r--r--src/client/views/animationtimeline/Keyframe.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/views/animationtimeline/Keyframe.tsx b/src/client/views/animationtimeline/Keyframe.tsx
index 784765318..4e58b07d8 100644
--- a/src/client/views/animationtimeline/Keyframe.tsx
+++ b/src/client/views/animationtimeline/Keyframe.tsx
@@ -242,7 +242,6 @@ export class Keyframe extends React.Component<IProps> {
onBarPointerDown = (e: React.PointerEvent) => {
e.preventDefault();
e.stopPropagation();
-
let clientX = e.clientX;
if (this._doubleClickEnabled){
this.createKeyframe(clientX);
@@ -254,14 +253,9 @@ export class Keyframe extends React.Component<IProps> {
this._doubleClickEnabled = true;
document.addEventListener("pointermove", this.onBarPointerMove);
document.addEventListener("pointerup", (e: PointerEvent) => {
- document.removeEventListener("pointermove", this.onBarPointerMove);
+ document.removeEventListener("pointermove", this.onBarPointerMove);
});
-
}
-
-
-
-
}