Skip to content

Commit

Permalink
Update src/helpers/helpers.dom.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle committed Mar 23, 2022
1 parent 03de123 commit d50c746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/helpers.dom.js
Expand Up @@ -98,7 +98,7 @@ function getCanvasPosition(e, canvas) {
* @returns {{x: number, y: number}}
*/
export function getRelativePosition(evt, chart) {
if ('native' in evt) {
if (evt && ('native' in evt)) {
return evt;
}

Expand Down

0 comments on commit d50c746

Please sign in to comment.