Skip to content

Commit

Permalink
fix: changed unused event removal for mousemove; use mouseup
Browse files Browse the repository at this point in the history
  • Loading branch information
hoorayimhelping committed Jun 30, 2021
1 parent e0b7a6b commit 2bca863
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion giraffe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe",
"version": "2.15.6",
"version": "2.15.7",
"main": "dist/index.js",
"module": "src/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion giraffe/src/utils/useDragEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const useDragEvent = (): [DragEvent | null, UseDragEventProps] => {

const onMouseUp = mouseUpEvent => {
document.removeEventListener('mousemove', onMouseMove)
document.removeEventListener('mousemove', onMouseUp)
document.removeEventListener('mouseup', onMouseUp)

const [x, y] = getXYCoords(mouseUpEvent)

Expand Down
2 changes: 1 addition & 1 deletion stories/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe-stories",
"version": "2.15.6",
"version": "2.15.7",
"license": "MIT",
"scripts": {
"lint": "eslint '{src,../giraffe/src}/**/*.{ts,tsx}'",
Expand Down

0 comments on commit 2bca863

Please sign in to comment.