Skip to content

Commit

Permalink
Merge pull request #4 from Azeirah/patch-1
Browse files Browse the repository at this point in the history
Fixes issue #3
  • Loading branch information
pdubroy committed Mar 28, 2015
2 parents 923d0f9 + 95f080e commit df02102
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/plugins/scrubbable.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
var self = this;
handleDrag(el, {
start: function(e) {
origin = { x: e.x, y: e.y };
origin = { x: e.clientX, y: e.clientY };
document.body.classList.add('mc-scrubbing');
},
drag: function(e) {
el.textContent = originalValue + (e.x - origin.x);
el.textContent = originalValue + (e.clientX - origin.x);
},
end: function(e) {
document.body.classList.remove('mc-scrubbing');
Expand All @@ -69,4 +69,4 @@
});
});
});
</script>
</script>

0 comments on commit df02102

Please sign in to comment.