Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 22, 2019
1 parent 9ceeb00 commit b333317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/base/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ ripe.fixEvent = function(event) {
return event;
}

const _target = event.target || event.srcElement;
const rect = _target.getBoundingClientRect();
const target = event.target || event.srcElement;
const rect = target.getBoundingClientRect();

try {
event.offsetX = event.clientX - rect.left;
Expand Down

0 comments on commit b333317

Please sign in to comment.