Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
dilizarov authored and bdbch committed May 11, 2022
1 parent 7401d45 commit e17c414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/NodeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class NodeView<
// In React, we have to go through nativeEvent to reach offsetX/offsetY.
const offsetX = event.offsetX ?? (event as any).nativeEvent?.offsetX
const offsetY = event.offsetY ?? (event as any).nativeEvent?.offsetY

x = handleBox.x - domBox.x + offsetX
y = handleBox.y - domBox.y + offsetY
}
Expand Down

0 comments on commit e17c414

Please sign in to comment.